You may test your code before commit by the command:
$ commithook test
Let's test.
$ echo '<?php echo 111; is_null(null);' > test.php
$ git add test.php
$ commithook test
And take a look at errors list.
You may test your code before commit by the command:
$ commithook test
Let's test.
$ echo '<?php echo 111; is_null(null);' > test.php
$ git add test.php
$ commithook test
And take a look at errors list.