Closed (fixed)
Project:
Drupal core
Version:
10.0.x-dev
Component:
other
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 May 2022 at 07:37 UTC
Updated:
8 Jun 2022 at 23:16 UTC
Jump to comment: Most recent
Comments
Comment #2
longwave#3278162: Update Composer dependencies to the latest minor and patch versions covers this and more.
Comment #4
mallezieThis also updates the baseline. Most are false positives being removed.
Most added new entry added is:
Not sure if we could just add those, or fix them before updating the dependencies.
Comment #5
mallezieThis is strange, I don't see that one when I ran phpstan locally.
Also when checking the codebase, the 2 mentioned missing accescheck calls are there (although false)
Comment #6
mondrake@mallezie @mglaman it could make sense to split the update in two, one for phpstan itself and one for phpstan-drupal...
Missing explicit access check on entity querysounds definitely like a phpstan-drupal error.Maybe the baseline changes of phpstan itself are more manageable.
Comment #7
xjmComment #8
longwaveNeeds reroll following #3278162: Update Composer dependencies to the latest minor and patch versions
Comment #9
mallezieRerolling, and only updating phpstan/phpstan in this issue.
phpstan-drupal can be updated in #3279840: Update mglaman/phpstan-drupal
This still includes changes from #3278782: PHPStan baseline is out of sync
Comment #10
mallezieComment #11
mallezieGoing through the baseline diff. Only thing i'm seeing is removals of items from the baseline. This means phpstan is fixing false positives.
Comment #12
mondrakeLook good to me, thanks!
Comment #13
alexpottCredited @mondrake for issue scoping.
Committed 810334c and pushed to 10.0.x. Thanks!
Comment #16
xjm