Skip to content

Commit 6fe036f

Browse files
authored
Merge pull request #357 from nextcloud/enh/noid/vimeo-psalm
Switch from psalm/phar to vimeo/psalm to support php 8.5
2 parents 1d3ceeb + 6a3f99a commit 6fe036f

6 files changed

Lines changed: 3440 additions & 41 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
.vscode-upload.json
88
.*.sw*
99
node_modules
10-
vendor
10+
vendor/
1111
js/*hot-update.*
1212
build
1313
.php-cs-fixer.cache

REUSE.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ SPDX-FileCopyrightText = "2021-2024 Nextcloud translators"
1010
SPDX-License-Identifier = "AGPL-3.0-or-later"
1111

1212
[[annotations]]
13-
path = [".tx/config", "composer.json", "composer.lock", "package-lock.json", "package.json"]
13+
path = [".tx/config", "composer.json", "composer.lock", "package-lock.json", "package.json", "vendor-bin/psalm/composer.json", "vendor-bin/psalm/composer.lock"]
1414
precedence = "aggregate"
1515
SPDX-FileCopyrightText = "2021 Nextcloud GmbH and Nextcloud contributors"
1616
SPDX-License-Identifier = "AGPL-3.0-or-later"

composer.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,34 @@
55
"classmap-authoritative": true,
66
"platform": {
77
"php": "8.2"
8+
},
9+
"allow-plugins": {
10+
"bamarni/composer-bin-plugin": true
811
}
912
},
1013
"scripts": {
1114
"cs:fix": "php-cs-fixer fix",
1215
"cs:check": "php-cs-fixer fix --dry-run --diff",
1316
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
1417
"test:unit": "phpunit -c tests/phpunit.xml --fail-on-warning",
15-
"psalm": "psalm.phar --no-cache"
18+
"psalm": "psalm --no-cache",
19+
"psalm:update-baseline": "psalm --threads=1 --update-baseline",
20+
"psalm:update-baseline:force": "psalm --threads=1 --update-baseline --set-baseline=tests/psalm-baseline.xml"
1621
},
1722
"require-dev": {
1823
"christophwurst/nextcloud_testing": "^1.0.1",
1924
"nextcloud/coding-standard": "^1.3.2",
2025
"phpunit/phpunit": "^9",
21-
"psalm/phar": "^6",
2226
"nextcloud/ocp": "dev-master"
27+
},
28+
"require": {
29+
"bamarni/composer-bin-plugin": "^1.8"
30+
},
31+
"extra": {
32+
"bamarni-bin": {
33+
"bin-links": true,
34+
"target-directory": "vendor-bin",
35+
"forward-command": true
36+
}
2337
}
2438
}

composer.lock

Lines changed: 60 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor-bin/psalm/composer.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"require": {
3+
"php": "^8.2 || ^8.3 || ^8.4 || ^8.5"
4+
},
5+
"require-dev": {
6+
"vimeo/psalm": "^6.10.0"
7+
},
8+
"config": {
9+
"platform": {
10+
"php": "8.2.27"
11+
}
12+
}
13+
}

0 commit comments

Comments
 (0)