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

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

promes created an issue. See original summary.

bluegeek9 made their first commit to this issue’s fork.

bluegeek9’s picture

Status: Active » Fixed
//www.flaticon.com/free-icons/thank-you Thank you for your contribution! Your continued support makes this project sustainable.
There are multiple ways to show appreciation for the work contributed to this project including:

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

bluegeek9’s picture

Category: Bug report » Task

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.