Overview

CI is now using 2.1.22 of phpstan which yields some new issues in HEAD

Proposed resolution

Fix em!

User interface changes

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

larowlan created an issue. See original summary.

dpi’s picture

dpi’s picture

"require-dev": {
        "mglaman/phpstan-drupal": "dev-narrow-id-return-by-isnew--only-existing as 2.9999.9999"
}
"repositories": [
    {
        "type": "git",
        "url": "git@github.com:dpi/phpstan-drupal.git"
    }
],
penyaskito’s picture

We don't use mglaman/phpstan-drupal apparently, I thought we did.

tedbow’s picture

re #5 but is in mglaman/phpstan-drupal composer.lock for CI composer job https://git.drupalcode.org/project/experience_builder/-/jobs/6109992/art...

tedbow’s picture

Assigned: Unassigned » mglaman

@mglaman, can you take a look?

mglaman’s picture

Yeah discussed via Slack, realized it was an issue with missing narrowed types, dpi made fixes and a new phpstan-drupal release rolling soon

mglaman’s picture

  • tedbow committed 84b30798 on 1.x
    Issue #3539676: Fix phpstan in HEAD from phpstan update to 2.1.22
    
tedbow’s picture

Assigned: mglaman » Unassigned
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.