From bd3420b6eff80bc94c0fcd6512673691e114d2db Mon Sep 17 00:00:00 2001 From: Lonnie Ezell Date: Sun, 25 Jun 2023 23:47:42 -0500 Subject: [PATCH] chore: remove php-stan from the precommit hook --- admin/pre-commit | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/admin/pre-commit b/admin/pre-commit index ef13c4c7a43a..f64268277e72 100644 --- a/admin/pre-commit +++ b/admin/pre-commit @@ -20,22 +20,6 @@ if [ "$STAGED_PHP_FILES" != "" ]; then done fi -if [ "$FILES" != "" ]; then - echo "Running PHPStan..." - - # Run on whole codebase - if [ -d /proc/cygdrive ]; then - XDEBUG_MODE=off ./vendor/bin/phpstan analyse - else - XDEBUG_MODE=off php ./vendor/bin/phpstan analyse - fi - - if [ $? != 0 ]; then - echo "Fix the phpstan error(s) before commit." - exit 1 - fi -fi - if [ "$FILES" != "" ]; then echo "Running PHP CS Fixer..."