Skip to content

Commit 5427cc7

Browse files
test(psalm): Fix psalm for php < 8.4
1 parent 8697fb3 commit 5427cc7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/coding-standards.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ jobs:
8686
run: ddev phpstan /var/www/html/${{env.EXTENSION_PATH}}/tools/coding-standards phpstan/phpstan.neon /var/www/html/${{env.EXTENSION_PATH}}/src
8787

8888
- name: Run PSALM
89+
if: contains(fromJson('["7.4","8.0","8.1","8.2","8.3"]'),matrix.php-version)
8990
run: ddev psalm ./${{env.EXTENSION_PATH}}/tools/coding-standards /var/www/html/${{env.EXTENSION_PATH}}/tools/coding-standards/psalm
9091

9192
- name: Run PHPUNIT Code Coverage

tools/coding-standards/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"phpstan/phpstan": "^1.8.0",
66
"phpmd/phpmd": "^2.12.0",
77
"squizlabs/php_codesniffer": "3.7.1",
8-
"vimeo/psalm": "^4.24.0",
8+
"vimeo/psalm": "^4.24.0 || ^5.26",
99
"phpunit/phpunit": "^9.3",
1010
"phpunit/php-code-coverage": "^9.2.15",
1111
"mikey179/vfsstream": "^1.6.11",

0 commit comments

Comments
 (0)