diff options
author | sualko <klaus@jsxc.org> | 2021-05-16 21:33:27 +0300 |
---|---|---|
committer | sualko <klaus@jsxc.org> | 2021-05-28 18:35:54 +0300 |
commit | 87f9d21e59e46ac7aa97720b47f19622d748b2b8 (patch) | |
tree | e40b4ae2fff47ee274db267894a0ab5ca1041903 /composer.json | |
parent | db9ccf7bd342cca4f3fabd96b4a56639c6a1da00 (diff) |
chore: add psalm
Diffstat (limited to 'composer.json')
-rw-r--r-- | composer.json | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/composer.json b/composer.json index 108c50c..543e412 100644 --- a/composer.json +++ b/composer.json @@ -5,12 +5,18 @@ }, "require-dev": { "phpunit/phpunit": "^8.5 || ^9.3", - "friendsofphp/php-cs-fixer": "^2.14" + "friendsofphp/php-cs-fixer": "^2.14", + "christophwurst/nextcloud": "dev-stable20 || dev-stable21", + "vimeo/psalm": "^4.5" }, "scripts": { "test": "phpunit --configuration phpunit.xml", "cs:check": "php-cs-fixer fix --dry-run --diff", "cs:fix": "php-cs-fixer fix", - "lint": "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;" + "lint": "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;", + "psalm": "psalm --threads=1", + "psalm:clear": "psalm --clear-cache && psalm --clear-global-cache", + "psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType", + "psalm:update": "psalm --set-baseline=tests/psalm-baseline.xml && psalm --update-baseline" } } |