Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pre-commit hook does not work with alias
In some workflows like MAMP on OSX default php version is set using alias in bash profile alias php='/Applications/MAMP/bin/php/php7.4.2/bin/php -c "/Library/Application Support/appsolute/MAMP PRO/conf/php7.4.2.ini"' In such case when phpstan and codesniffer are executed via git hoot it will run them using the default system php instead of using the alias. Prefixing the method call with php triggers the alias and solves the issue.
- Loading branch information