Problem/Motivation

Amongst the current suppressions found in the PHPStan level 1 baseline is: #foo callback 'bar' at key 'n' is not callable..

This issue exists to fix all of those.

Steps to reproduce

- Run PHPStan on level 1 and see the above issue amongst all others.

Proposed resolution

- Solve all of the reported issues for the above mentioned. As a matter fact, both occurrences are purposely invalid callbacks, so we need to @phpstan-ignore-next-line them.
- Run PHPStan on level 1 and don't see the above issue any more.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3352758

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

Spokje created an issue. See original summary.

spokje’s picture

Issue summary: View changes
spokje’s picture

Status: Active » Needs review
mondrake’s picture

Status: Needs review » Reviewed & tested by the community

Looks good, thanks.

longwave’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed 60f751eaab to 10.1.x. Thanks!

  • longwave committed 60f751ea on 10.1.x
    Issue #3352758 by Spokje: Fix PHPStan L1 errors "#foo callback 'bar' at...

Status: Fixed » Closed (fixed)

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