diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-04-14 14:24:31 +0300 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-04-14 15:18:55 +0300 |
commit | 850b0a963415cc1f123205b60176da25f694a5d4 (patch) | |
tree | 90d2c9f82b8028c262bcf1dcaf87b002646f8364 /composer.json | |
parent | 0ec4f8a55666978b50ccaa6adf8e2655821df908 (diff) |
Add psalm and cleanup for php 7.4
This also replace IMessage private api usage with the equivalent public
api usage.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'composer.json')
-rw-r--r-- | composer.json | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/composer.json b/composer.json index 9fabd99..83c347d 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,6 @@ { "name": "nextcloud/data_request", + "license": "AGPL", "config": { "optimize-autoloader": true, "classmap-authoritative": true, @@ -8,12 +9,18 @@ } }, "scripts": { - "cs:fix": "php-cs-fixer fix", + "lint": "find . -name \\*.php -not -path './vendor/*' -not -path './build/*' -print0 | xargs -0 -n1 php -l", "cs:check": "php-cs-fixer fix --dry-run --diff", - "lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l" + "cs:fix": "php-cs-fixer fix", + "psalm": "psalm --threads=1", + "psalm:update-baseline": "psalm --threads=1 --update-baseline", + "psalm:clear": "psalm --clear-cache && psalm --clear-global-cache", + "psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType" }, "require-dev": { + "phpunit/phpunit": "^9.5", "nextcloud/coding-standard": "^1.0.0", - "phpunit/phpunit": "^9.5" + "christophwurst/nextcloud": "dev-master", + "vimeo/psalm": "^4.22.0" } } |