[TOOLS] Run PHPStan on the whole codebase on each commit
This commit is contained in:
parent
ecb1064d08
commit
0eb0236feb
@ -25,5 +25,9 @@ if echo "${staged_files}" | grep -F ".php"; then
|
|||||||
"${root}/bin/php-doc-check" src plugins components
|
"${root}/bin/php-doc-check" src plugins components
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Running phpstan"
|
||||||
|
|
||||||
|
"${root}/vendor/bin/phpstan" --memory-limit=2G analyse src tests components plugins
|
||||||
|
|
||||||
# Only commit if there wasn't an error
|
# Only commit if there wasn't an error
|
||||||
exit $?
|
exit $?
|
||||||
|
Loading…
Reference in New Issue
Block a user