Problem/Motivation
mglaman/phpstan-drupal just released v2.5.0, which addresses many new issues introduced to the phpstan baseline in level 3.
There is also a patch level update to phpstan/phpstan, so we should bump to 2.3.7 at the same time.
On main this reduces the violations in the baseline from 13818 down to 13443, a reduction of 375.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3642976
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
mstrelan commentedComment #4
smustgrave commentedAssuming before it was just composer update phpstan/phpstan? But either way seems like the bump didn’t break anything
Comment #6
catchYeah we often don't bump constraints unless there's a security release and that never* happens for dev dependencies, seems fine to do so here though. Also that's a lot of baseline removals!
Committed/pushed to main, thanks!
Needs a backport MR for 12.0.x
Comment #7
godotislateI think we should backport to 11.x/11.5.x as well, to reduce the chance of conflicts in the baseline backports in the future?
Comment #11
mstrelan commentedI opened MRs for 12.0.x, 11.x and 11.5.x. In the latter two I removed the constraint bump so we're not forcing downstream to update there if they don't want to.
Note the 11 series MRs actually add 3 new entries to the baseline rather than reducing the baseline. This is because the level 3 errors removing in 12.0.x don't exist there.
Comment #12
smustgrave commentedSeems like a good backport.
Comment #16
godotislateCommitted and pushed 796caa4 to 12.0.x, 114bc97 to 11.x, and e23adc7 to 11.5.x. Thanks!