Skip to content

Drupal 10 (drupal/core-dev) requires phpstan/extension-installer which breaks php_stan #93

Closed
@hkirsman

Description

@hkirsman

phpstan/extension-installer starts to automatically include .neon files that are defined in our phpstan.neon.

You'll see that the scanner does not start and it says:

These files are included multiple times:
- /app/vendor/mglaman/phpstan-drupal/extension.neon
- /app/vendor/phpstan/phpstan-deprecation-rules/rules.neon

So in D10 the solution is to remove these lines:
image

This is where you see them being registered by phpstan/extension-installer
image (61)

I'm just wondering if maybe we should make this permanent fix for also D9

  • require phpstan/extension-installer in our composer.json
  • remove the 2 lines

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions