Problem/Motivation
Amongst the current suppressions found in the PHPStan level 1 baseline is: Offset 'foo' on array{} in isset() does not exist..
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-3374878
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:
- 3374878-fix-phpstan-l1
changes, plain diff MR !4396
Comments
Comment #3
spokjeComment #4
smustgrave commentedApplied the MR and searched for "message: "#^Offset " and both instances have been replaced. All tests are green so no failures there.
Comment #8
lauriiiCommitted 985b1ef and pushed to 11.x. Thanks! Also cherry-picked to 10.1.x as a test only change.