v0.3.0
Drupal check has been removed and now PHPstan is used instead.
For projects that were using drupal check, the steps to do the upgrade are:
- Add a phpstan.neon configuration at the root of the repository, based on your business logic. Example:
parameters:
level: 8
paths:
- web/modules/custom
- web/themes/custom
More information about configuring PHPstan: https://phpstan.org/config-reference
- In the case you are using grumphp:
- Remove the drupalcheck configuration from grumphp.yml in case you where using it.
- Add the following phpstan configuration, modify it based on your needing:
phpstan:
autoload_file: ~
configuration: ~
force_patterns: []
ignore_patterns: []
triggered_by: ['php', 'module', 'inc', 'theme', 'install']
memory_limit: "-1"
use_grumphp_paths: true
More information about configuring phpstan at grumphp: https://github.com/phpro/grumphp/blob/master/doc/tasks/phpstan.md