Skip to content

Commit d4dc5ab

Browse files
authored
Merge pull request #757 from datamweb/remove_PHPStan_pre_commit
chore: remove php-stan from the precommit hook
2 parents 862653f + 9416b09 commit d4dc5ab

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

admin/pre-commit

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,6 @@ if [ "$STAGED_PHP_FILES" != "" ]; then
1919
done
2020
fi
2121

22-
if [ "$FILES" != "" ]; then
23-
echo "Running PHPStan..."
24-
25-
if [ -d /proc/cygdrive ]; then
26-
./vendor/bin/phpstan analyse
27-
else
28-
php ./vendor/bin/phpstan analyse
29-
fi
30-
31-
if [ $? != 0 ]; then
32-
echo "Fix the phpstan error(s) before commit."
33-
exit 1
34-
fi
35-
fi
36-
3722
if [ "$FILES" != "" ]; then
3823
echo "Running PHP CS Fixer..."
3924

0 commit comments

Comments
 (0)