Install PHPStan Shim (prefixed PHAR version) using Composer to enable extensions

[MAILPOET-2429]
This commit is contained in:
Jan Jakeš
2019-10-15 11:32:56 +02:00
committed by Jack Kitterhing
parent 7ecabdba3a
commit cdcd63342d
6 changed files with 77 additions and 4 deletions

View File

@ -391,6 +391,7 @@ class RoboFile extends \Robo\Tasks {
'prefixer/build',
'prefixer/vendor',
'tasks/code_sniffer/vendor',
'tasks/phpstan/vendor',
'tasks/makepot',
'tools/vendor',
])
@ -462,7 +463,7 @@ class RoboFile extends \Robo\Tasks {
->taskExec(
'WP_ROOT="' . getenv('WP_ROOT') . '" ' .
'php -d memory_limit=2G ' .
"$dir/tools/vendor/phpstan.phar analyse " .
"$dir/tasks/phpstan/vendor/bin/phpstan analyse " .
"--configuration $dir/tasks/phpstan/phpstan.neon " .
'--level 5 ' .
"$dir/lib"