phpstan-drupal icon indicating copy to clipboard operation
phpstan-drupal copied to clipboard

Unexpected item 'parameters › drupal'.

Open NigelCunningham opened this issue 6 months ago • 3 comments

Hi there.

I've seen a previous issue with a similar report, but don't seem to have the same cause. I have phpstan/extension-installer included in my composer.json and the files exist under /vendor/phpstan, but I'm still getting

nigel@nigel-laptop:~/oimsdelite$ php /home/nigel/oimsdelite/vendor/bin/phpstan analyse --memory-limit=1500M --error-format=json --configuration=/tmp/upgrade_status/deprecation_testing.neon /home/nigel/oimsdelite/web/modules/custom/websocket
Invalid configuration:
Unexpected item 'parameters › drupal'.
nigel@nigel-laptop:~/oimsdelite$

Here's the relevant part of my composer.json.

    "config": {
        "allow-plugins": {
            "composer/installers": true,
            "cweagans/composer-patches": true,
            "dealerdirect/phpcodesniffer-composer-installer": true,
            "drupal/core-composer-scaffold": true,
            "drupal/core-project-message": true,
            "mglaman/composer-drupal-lenient": true,
            "oomphinc/composer-installers-extender": true,
            "php-http/discovery": true,
            "phpstan/extension-installer": true,
            "tbachert/spi": true
        },
        "sort-packages": true
    },

Would you be willing to give me some pointers on debugging this, please? I can usually sus things out myself but this one has me stumped. Thanks!

NigelCunningham avatar May 25 '25 05:05 NigelCunningham