Skip to content

Commit 93695b7

Browse files
committed
composer.json // update "inpsyde/wp-stubs-versions" to version "6.7" instead of "latest".
This change is needed because with WP 6.8 (latest in May 2025), the static analysis fail due invalid code in PHP 7.4. See also: php-stubs/wordpress-stubs#277
1 parent edbb3fb commit 93695b7

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/php-unit-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ jobs:
7676
files: ./coverage.xml
7777
flags: unittests
7878
verbose: true
79+
# PHP 8.4 causes many failures with "lowest" dependency version due incompatibility.
80+
# So, we're running it in an isolated step.
7981
test-phpunit-84:
8082
uses: inpsyde/reusable-workflows/.github/workflows/tests-unit-php.yml@main
8183
with:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"require-dev": {
2929
"brain/monkey": "^2.6.1",
30-
"inpsyde/wp-stubs-versions": "dev-latest",
30+
"inpsyde/wp-stubs-versions": "6.7",
3131
"mikey179/vfsstream": "^v1.6.11",
3232
"phpstan/phpstan": "^2.1.1",
3333
"phpstan/phpstan-deprecation-rules": "^2.0.1",

phpstan.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ parameters:
88
dynamicConstantNames:
99
- WP_DEBUG
1010
scanFiles:
11-
- vendor/inpsyde/wp-stubs-versions/latest.php
11+
- vendor/inpsyde/wp-stubs-versions/6.7.php
1212
paths:
1313
- src/
1414
- tests/

0 commit comments

Comments
 (0)