Problem/Motivation
Currently we run PHPStan analysis at the default level 1. Let's do better!
Steps to reproduce
Increase _PHPSTAN_LEVEL in .gitlab-ci.yml and observe the new errors.
Proposed resolution
I propose we bump it to level 2 and see what that looks like. If it makes sense to go higher, let's do that too!
Remaining tasks
- Open MR that bumps the level.
- Fix errors.
- Repeat until satisfied.
- Merge.
User interface changes
None.
API changes
None.
Data model changes
None.
Issue fork log-3527089
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 #3
m.stentaLevel 2 errors:
Comment #4
m.stentaI fixed all the level 2 errors.
Level 3 only adds 3 more errors, so let's fix those as well:
Comment #5
m.stentaI fixed all the level 2 errors.
Level 4 doesn't cause any errors, and level 5 only adds 5 more, so I'll try to fix those as well.
Comment #7
m.stenta