Problem/Motivation
Amongst the current suppressions found in the PHPStan level 1 baseline is: Class \Foo\Bar not found..
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.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3358890
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:
- 3358890-fix-phpstan-l1
compare
- 3358890-10.1.x-fix-phpstan-l1
changes, plain diff MR !3954
Comments
Comment #2
spokjeComment #4
spokjeComment #5
smustgrave commentedApplied MR and searched for "\Tasks not found" and both instances have been addressed.
Comment #6
mondrakeI’m not sure we really intend to test missing classes here - rather I feel like it’s a gap in the stub drivers implementations. Maybe we can get @daffie’s point of view here?
Comment #7
spokjeHmm, maybe my comment is incorrect/not precise enough.
I'm sure we're not testing missing classes, but maybe there were no classes in core's codebase that fit the brief, so it was easier to "make some up" for testing namespace-dependant ordering.
Anyway: I always welcome @daffie's expertise.
Comment #8
mondrakeAh, but that’s in a legacy deprecation test, that will go away anyway. So no bother. RTBC++
Comment #9
daffie commented+1 for RTBC.
Comment #10
mondrakeAdded a comment inline. It's a nit.
Comment #12
longwaveCommitted and pushed 95c061fa9c to 11.x (10.2.x). Thanks!