install PHPStan for static code analysis

This commit is contained in:
Art4 2024-11-02 22:24:10 +01:00
parent cf92446cf3
commit 0965a84929
3 changed files with 70 additions and 1 deletions

View file

@ -152,10 +152,12 @@
"mikey179/vfsstream": "^1.6",
"mockery/mockery": "^1.3",
"php-mock/php-mock-phpunit": "^2.10",
"phpstan/phpstan": "^1.12",
"phpunit/phpunit": "^9"
},
"scripts": {
"test": "phpunit",
"phpstan": "phpstan analyze --memory-limit 1024M --configuration .phpstan.neon",
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './view/asset/*' -print0 | xargs -0 -n1 php -l",
"docker:translate": "docker run --rm -v $PWD:/data -w /data friendicaci/transifex bin/run_xgettext.sh",
"cs:install": "@composer install --working-dir=bin/dev/php-cs-fixer",