Skip to content

Commit a24df9c

Browse files
More fixes around pre-push and reverted to level 5
1 parent aa194b2 commit a24df9c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.git-hooks-matomo/pre-push

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ MATOMO_DIR=$(echo "$REPO_DIR" | sed -E 's|/plugins/.*$||')
3434
COMMAND=""
3535
# Use local PHP if setup
3636
if command -v php >/dev/null 2>&1; then
37-
if "${MATOMO_DIR}/vendor/bin/phpstan" -v 2>&1 > /dev/null; then
37+
if [ -f "${MATOMO_DIR}/vendor/bin/phpstan" ]; then
3838
COMMAND="${MATOMO_DIR}/vendor/bin/phpstan"
3939
fi
4040
fi
@@ -101,4 +101,4 @@ fi
101101
# $COMMAND analyse -c ${PLUGIN_PATH}/${PHPSTAN_BASE_CONFIG} || STATUS=1
102102
# fi
103103

104-
exit $STATUS
104+
exit $STATUS

phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
parameters:
2-
level: 8
2+
level: 5
33
phpVersion: 70200
44
tmpDir: /tmp/phpstan/Slack/main
55
paths:

0 commit comments

Comments
 (0)