Problem/Motivation
@mglaman released version 1.1.32 of mglaman/phpstan-drupal (See https://github.com/mglaman/phpstan-drupal/releases/tag/1.1.32)
Looking at https://www.drupal.org/node/3060/qa it removes some false positives on Level 1.
It also introduces some new suppressions in \Drupal\KernelTests\Core\Datetime\DatelistElementFormTest that need to be looked at and determined if they need a fix in Drupal Core or are regressions and should be fixed upstream. This is for a separate issue.
EDIT: They need to be fixed upstream, see https://github.com/mglaman/phpstan-drupal/issues/553.
Steps to reproduce
See https://www.drupal.org/node/3060/qa and notice the failures on both updated deps jobs for 10.0.x and 10.1.x
Proposed resolution
- Upgrade mglaman/phpstan-drupal
- Create a new baseline
- Bump version of mglaman/phpstan-drupal in composer.json to 1.1.32, since the newly created baseline won't pass on any version below that.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3359543-10.0.x-3.patch | 7.69 KB | spokje |
Issue fork drupal-3359543
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:
- 3359543-update-mglamanphpstan-drupal-and
changes, plain diff MR !3979
Comments
Comment #3
spokjeComment #4
spokjeComment #5
spokjeComment #6
spokjeComment #7
borisson_The patch in #3 fixes exactly what is described in the IS, we should create the followups before committing this, but the patch looks great.
Comment #8
spokjeComment #9
spokjeComment #10
spokjeThanks @borrison, I've opened upstream issue https://github.com/mglaman/phpstan-drupal/issues/553 to deal with the false positives in the two DateTime tests.
Comment #14
catchCommitted/cherry-picked to 11.x/10.1.x/10.0.x respectively. Four steps forwards three steps back :)
Comment #16
spokjeI see it in a more positive way: It's like running into a brick wall, yet every time slightly slower...
Comment #17
mglamanI opened https://github.com/mglaman/phpstan-drupal/issues/418 for myself.
I think I'll implement it as a release gate check to see what changes will affect Drupal core before I make a release.