Slide 14
Slide 14 text
コミット時の出⼒サンプル
> git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file -
Note: Using configuration file /home/ec2-user/husky-phpstan/phpstan.neon.
0/1 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0% [1G [2K 1/1
[▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ------------------------------------------------------------
Line sample1.php
------ ------------------------------------------------------------
6 Parameter #1 $a of function add expects int, string given.
6 Parameter #2 $b of function add expects int, string given.
------ ------------------------------------------------------------
[ERROR] Found 2 errors
PHPStan failed
husky - pre-commit hook exited with code 1 (error)