Run PHPStan on level 7

[MAILPOET-2535]
This commit is contained in:
Pavel Dohnal
2019-11-19 16:30:37 +01:00
committed by Jack Kitterhing
parent 52b4d67eca
commit 1b3a74ace1
5 changed files with 291 additions and 1 deletions

View File

@ -466,7 +466,7 @@ class RoboFile extends \Robo\Tasks {
'WP_ROOT="' . getenv('WP_ROOT') . '"',
'php -d memory_limit=2G',
"$dir/tasks/phpstan/vendor/bin/phpstan analyse ",
'--level 5',
'--level 7',
]);
// PHPStan must be run out of main plugin directory to avoid its autoloading