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

Command icon 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

mstrelan created an issue. See original summary.

mstrelan’s picture

Status: Active » Needs review
smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Assuming before it was just composer update phpstan/phpstan? But either way seems like the bump didn’t break anything

  • catch committed 393731d0 on main
    task: #3642976 Bump phpstan and related dependencies
    
    By: mstrelan
    
catch’s picture

Version: main » 12.0.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

Yeah 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

godotislate’s picture

I 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?

mstrelan’s picture

Status: Patch (to be ported) » Needs review

I 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.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Seems like a good backport.

  • godotislate committed e23adc7f on 11.5.x
    task: #3642976 Bump phpstan and related dependencies
    
    By: mstrelan
    By:...

  • godotislate committed 796caa4e on 12.0.x
    task: #3642976 Bump phpstan and related dependencies
    
    By: mstrelan
    By:...

  • godotislate committed 114bc97a on 11.x
    task: #3642976 Bump phpstan and related dependencies
    
    By: mstrelan
    By:...
godotislate’s picture

Version: 12.0.x-dev » 11.5.x-dev
Status: Reviewed & tested by the community » Fixed

Committed and pushed 796caa4 to 12.0.x, 114bc97 to 11.x, and e23adc7 to 11.5.x. Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.