Problem/Motivation
Some phpstan findings were fixed, but the @phpstan-ignore-next-line remains in the code. This excludes the code from analysis and makes phpstan less reliable
Steps to reproduce
See https://git.drupalcode.org/project/domain/-/blob/4.x/phpstan.neon?ref_ty...
Proposed resolution
Remove reportUnmatchedIgnoredErrors from phpstan configuration
Remaining tasks
- Write a merge request
- Review
- Commit
User interface changes
None
API changes
None
Data model changes
None
Issue fork domain-3616747
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 #4
idebr commentedThe
module_set_weightdeprecation is preferably fixed with theDrupal\Component\Utility\DeprecationHelperso the code is forward compatible and phpstan has nothing to report, see https://www.drupal.org/node/3379306Comment #5
mably commentedDeprecationHelperfixes the deprecation, butModuleWeight::classis itself a compile-time reference to a class that doesn't exist on 11.4 — that produced 8class.notFound.Comment #7
idebr commentedI see, that is annoying. Big improvement as is
Comment #9
mably commentedThanks @idebr for the review! Merged.