Problem/Motivation
In line 90 NameFormatListBuilder function buildRow(EntityInterface $entity) is this code:
$row['examples'] = $this->examples($entity);
Definition of: function examples(NameFormat $entity).
phpstan flags this as an Error: Parameter #1 $entity of method Drupal\name\NameListFormatListBuilder::examples() expects Drupal\name\Entity\NameListFormat, Drupal\Core\Entity\EntityInterface given.
How to fix: Check the argument type being passed. The function/method expects a different type than what is being provided. Add type casting or fix the value source.
The same error is flagged in NameListFormatListBuilder.php.
Issue fork name-3588111
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
Comment #5
bluegeek9 commentedComment #7
bluegeek9 commented