Problem/Motivation

Amongst the current suppressions found in the PHPStan level 1 baseline, introduce by the adding of phpstan/phpstan-phpunit, is: @covers value foo references an invalid class or function..

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.
- 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-3351095

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

Assigned: spokje » Unassigned
Status: Active » Needs review
daffie’s picture

Status: Needs review » Needs work

For the 2 remarks on the PR.

spokje’s picture

Status: Needs work » Needs review
daffie’s picture

Status: Needs review » Reviewed & tested by the community

All my remarks have been addressed.
For me it is RTBC.

spokje’s picture

spokje’s picture

Rebased after #3351073: Fix PHPStan L1 errors "Annotation "@covers::foo" is invalid, "@covers" should be followed by a space and a value." was committed.

NOTE: There's still one open thread in the MR that might(?) need some more input before committing.

longwave’s picture

Status: Reviewed & tested by the community » Needs work
spokje’s picture

Status: Needs work » Needs review

Addressed last open thread.

daffie’s picture

Status: Needs review » Reviewed & tested by the community

All the changes look good to me.
Back to RTBC.

spokje’s picture

Merge blocked: fast-forward merge is not possible. To merge this request, first rebase locally.

spokje’s picture

Assigned: Unassigned » spokje
Status: Reviewed & tested by the community » Needs work
spokje’s picture

Assigned: spokje » Unassigned
Status: Needs work » Reviewed & tested by the community

Thanks @daffie, back to RTBC after rebase.

  • longwave committed 99492c02 on 10.1.x
    Issue #3351095 by Spokje, daffie, longwave, xjm: Fix PHPStan L1 errors...

longwave credited xjm.

longwave’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 10.1.x, thanks!

Status: Fixed » Closed (fixed)

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