Skip to content

Commit 9f5da75

Browse files
committed
Fix should run full check if php-cs-fixer is changed
1 parent 317cab5 commit 9f5da75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ run_php_cs_fixer() {
5959
# only for files that have changed since the last commit.
6060
changed_files=$(git diff --staged --name-only --diff-filter=ACMRTUXB)
6161

62-
if ! echo "${changed_files}" | grep -qE "^(laravel/)?(\\.php-cs-fixer(\\.dist)?|composer\\.lock)$"; then
62+
if ! echo "${changed_files}" | grep -qE "^(laravel/)?(\\.php-cs-fixer(\\.dist)?\\.php|composer\\.lock)$"; then
6363
extra_args=$(printf -- '--path-mode=intersection\n--\n%s' "${changed_files}")
6464
else
6565
extra_args=''

0 commit comments

Comments
 (0)