diff options
author | Joas Schilling <coding@schilljs.com> | 2020-10-09 12:28:46 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-10-09 12:28:46 +0300 |
commit | 3b9deaae794e3df1791cf61dcea31e91139558e1 (patch) | |
tree | 688ad30dbfc4f5cc2b5589d2fedfdeef67ee2a69 /composer.json | |
parent | 5491c1accbd30013c0930d211dabb382aca7472e (diff) |
Add Psalm
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'composer.json')
-rw-r--r-- | composer.json | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/composer.json b/composer.json index 1c5cd09ae..f5efcfb37 100644 --- a/composer.json +++ b/composer.json @@ -2,9 +2,14 @@ "scripts": { "cs:check": "php-cs-fixer fix --dry-run --diff", "cs:fix": "php-cs-fixer fix", - "lint": "find . -name \\*.php -not -path './vendor/*' -not -path './build/*' -not -path './tests/integration/vendor/*' -print0 | xargs -0 -n1 php -l" + "lint": "find . -name \\*.php -not -path './vendor/*' -not -path './build/*' -not -path './tests/integration/vendor/*' -print0 | xargs -0 -n1 php -l", + "psalm": "psalm", + "psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType" }, + "minimum-stability": "dev", "require-dev": { - "nextcloud/coding-standard": "^0.3.0" + "nextcloud/coding-standard": "^0.3.0", + "vimeo/psalm": "^3.16", + "christophwurst/nextcloud": "dev-master" } } |