Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-04-21 14:34:32 +0300
committerJulius Härtl <jus@bitgrid.net>2021-04-21 14:34:32 +0300
commit94e700d1371a01c17ac2bc29d00bd36010732d53 (patch)
tree90e05e47d9b97269b3e90cf176b7bf67b79c1de4 /composer.json
parent8ae8852183e645063403b7fa067d916869874d74 (diff)
Add psalm
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'composer.json')
-rw-r--r--composer.json37
1 files changed, 20 insertions, 17 deletions
diff --git a/composer.json b/composer.json
index 720abd41..c49b032d 100644
--- a/composer.json
+++ b/composer.json
@@ -1,19 +1,22 @@
{
- "name": "nextcloud/richdocuments",
- "type": "project",
- "require-dev": {
- "roave/security-advisories": "dev-master",
- "christophwurst/nextcloud": "^21@dev",
- "jakub-onderka/php-parallel-lint": "^1.0.0"
- },
- "license": "AGPLv3",
- "authors": [
- {
- "name": "Julius Härtl",
- "email": "jus@bitgrid.net"
- }
- ],
- "scripts": {
- "lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l"
- }
+ "name": "nextcloud/richdocuments",
+ "type": "project",
+ "require-dev": {
+ "roave/security-advisories": "dev-master",
+ "christophwurst/nextcloud": "^21.0",
+ "jakub-onderka/php-parallel-lint": "^1.0.0",
+ "psalm/phar": "^4.7"
+ },
+ "license": "AGPLv3",
+ "authors": [
+ {
+ "name": "Julius Härtl",
+ "email": "jus@bitgrid.net"
+ }
+ ],
+ "scripts": {
+ "lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
+ "psalm": "psalm.phar",
+ "psalm:fix": "psalm.phar --alter --issues=InvalidReturnType,InvalidNullableReturnType,MismatchingDocblockParamType,MismatchingDocblockReturnType,MissingParamType,InvalidFalsableReturnType"
+ }
}