Skip to content

Commit 71e93e2

Browse files
test(psalm): Fix psalm for php < 8.4
1 parent ae0e1c1 commit 71e93e2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/coding-standards.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ jobs:
8686
run: ddev phpmd ./${{env.EXTENSION_PATH}}/tools/coding-standards phpmd/rulesets.xml ../../src
8787

8888
- name: Run PSALM
89-
# Disable Psalm waiting for a solution to https://github.com/vimeo/psalm/issues/10531
90-
if: false
89+
if: contains(fromJson('["7.4","8.0","8.1","8.2","8.3"]'),matrix.php-version)
9190
run: ddev psalm ./${{env.EXTENSION_PATH}}/tools/coding-standards ./${{env.EXTENSION_PATH}}/tools/coding-standards/psalm
9291

9392
- name: Prepare for Code Coverage

tools/coding-standards/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
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 || ^5.25.0",
8+
"vimeo/psalm": "^4.24.0 || ^5.26.0",
9+
"nikic/php-parser": "^4.18",
910
"phpunit/phpunit": "^9.3",
1011
"phpunit/php-code-coverage": "^9.2.15",
1112
"mikey179/vfsstream": "^1.6.11",

0 commit comments

Comments
 (0)