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

Fatal error: "GrumPHP\Exception\DeprecatedException: Direct configuration of parameter tasks is not allowed anymore."

Open Dopeyr opened this issue 4 years ago • 3 comments

Steps required to reproduce the problem

{
    "name": "andy/test",
    "require": {
        "drupol/drupal-conventions": "^1.7"
    },
    "authors": [
        {
            "name": "Andy Rigby",
            "email": "[email protected]"
        }
    ],
    "extra": {
        "grumphp": {
            "config-default-path": "vendor/drupol/drupal-conventions/config/drupal8/grumphp.yml"
        }
    }
}

composer install

Expected Result

  • No fatal error.

Actual Result

  • Fatal error.
PHP Fatal error:  Uncaught GrumPHP\Exception\DeprecatedException: Direct configuration of parameter tasks is not allowed anymore.
Please rename the `parameters` section in your grumphp.yaml file to `grumphp`.
More info: https://github.com/phpro/grumphp/releases/tag/v0.19.0

Looks like the default config under vendor/drupol/drupal-conventions/config/drupal8/grumphp.yml will need updating, or the grumphp version fixing at an earlier release?

Dopeyr avatar Aug 21 '20 13:08 Dopeyr

Indeed, it needs an update for the newer version of Grumphp.

I will dedicate some time during the weekend.

drupol avatar Aug 21 '20 13:08 drupol

Thank you, that's appreciated.

Dopeyr avatar Aug 21 '20 13:08 Dopeyr

Hello,

I updated the package to version 2 and it should be fixed.

Could you please let me know and/or close the issue ?

drupol avatar May 31 '21 14:05 drupol