Configure pre-commit to run PHPstan before commiting

This commit is contained in:
Benjamin Renard 2023-01-16 16:54:04 +01:00
parent f113c87a15
commit 85592f94fd

9
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,9 @@
# Pre-commit hooks to run tests and ensure code is cleaned.
# See https://pre-commit.com for more information
repos:
- repo: https://github.com/digitalpulp/pre-commit-php.git
rev: 1.4.0
hooks:
- id: php-stan
files: ^src\/.*\.(php)$
args: ['--configuration=.phpstan/config.neon']