From 63c7aa8d38e2eb875a669548706550d0cb67670f Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Thu, 11 Dec 2025 14:53:16 +0800 Subject: [PATCH] Update captainhook.json to cross-platform friendly --- captainhook.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/captainhook.json b/captainhook.json index 63d88f06..6a7b2f4f 100644 --- a/captainhook.json +++ b/captainhook.json @@ -3,7 +3,7 @@ "enabled": true, "actions": [ { - "action": ".\\vendor\\bin\\phpstan analyse --memory-limit 300M" + "action": "vendor/bin/phpstan analyse --memory-limit 300M" } ] }, @@ -11,7 +11,7 @@ "enabled": true, "actions": [ { - "action": ".\\vendor\\bin\\php-cs-fixer fix --config=.php-cs-fixer.php --dry-run --diff {$STAGED_FILES|of-type:php} --sequential", + "action": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --dry-run --diff {$STAGED_FILES|of-type:php} --sequential", "conditions": [ { "exec": "\\CaptainHook\\App\\Hook\\Condition\\FileStaged\\OfType",