Problem/Motivation

Running PHPCS shows the warnings/errors in attached file, which should be fixed.

CommentFileSizeAuthor
computed_field.txt16.59 KBggh
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ggh created an issue. See original summary.

ggh’s picture

Assigned: ggh » Unassigned
Status: Active » Needs review

MR Raised

mlncn’s picture

Version: 4.0.0-beta2 » 4.0.x-dev
Status: Needs review » Needs work

Among the numerous meaningless changes for coding standards, the patch also fixes a deprecation warning:

 ( ! ) Deprecated: Drupal\computed_field\Plugin\ComputedField\ComputedFieldBase::createComputedFieldDefinition(): Implicitly marking parameter $bundle as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/computed_field/src/Plugin/ComputedField/ComputedFieldBase.php on line 131

Unfortunately it breaks the module in a worse way:

PHP Fatal error:  Uncaught Error: Call to a member function getName() on null in /var/www/html/web/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php:188
Stack trace:
#0 /var/www/html/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(312): Drupal\Core\Config\Entity\ConfigEntityStorage->doLoadMultiple()
#1 /var/www/html/web/modules/contrib/computed_field/computed_field.module(122): Drupal\Core\Entity\EntityStorageBase->loadMultiple()
#2 /var/www/html/web/core/lib/Drupal/Core/Entity/EntityFieldManager.php(415): computed_field_entity_bundle_field_info()