Skip to content

Commit fe5882a

Browse files
committed
tests: bump PHPStan to v2.x
1 parent c8645e8 commit fe5882a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"squizlabs/php_codesniffer": "3.13.2",
2424
"wp-coding-standards/wpcs": "~3.2.0",
2525
"phpcompatibility/phpcompatibility-wp": "~2.1.3",
26-
"phpstan/phpstan": "~1.12.27",
26+
"phpstan/phpstan": "~2.1.17",
2727
"yoast/phpunit-polyfills": "^1.1.0"
2828
},
2929
"config": {
@@ -33,7 +33,7 @@
3333
"lock": false
3434
},
3535
"scripts": {
36-
"analyse": "@php ./vendor/bin/phpstan analyse --memory-limit=4G",
36+
"analyse": "@php ./vendor/bin/phpstan analyse --memory-limit=2G",
3737
"compat": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --standard=phpcompat.xml.dist --report=summary,source",
3838
"format": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf --report=summary,source",
3939
"lint": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --report=summary,source",

tests/phpstan/base.neon

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ parameters:
99
tmpDir: ../../.cache
1010

1111
# The Minimum PHP Version
12-
phpVersion: 70224
12+
phpVersion:
13+
min: 70224
14+
max: 80400
15+
1316
# If it's not enforced by PHP we can't assume users are passing valid values.
1417
treatPhpDocTypesAsCertain: false
1518

@@ -75,7 +78,6 @@ parameters:
7578
- ../../src/wp-includes/deprecated.php
7679
- ../../src/wp-includes/ms-deprecated.php
7780
- ../../src/wp-includes/pluggable-deprecated.php
78-
- ../../src/wp-includes/js/tinymce/wp-tinymce.php
7981
# These files are not part of the WordPress Core codebase.
8082
- ../../src/wp-content
8183
# JavaScript/CSS/Asset files.

0 commit comments

Comments
 (0)