From 74be688769528c0fab7253e3b2d352699693be73 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers <359867+desrosj@users.noreply.github.com> Date: Fri, 6 Nov 2026 11:00:38 -0500 Subject: [PATCH 1/2] Build/Test Tools: Update PHPStan to 2.3.5. This release adds support for auto-fixable rules through the new `--fix` option, which can also remove unmatched `ignoreErrors` entries and `@phpstan-ignore` comments, and allows extensions to be registered with attributes. The analysis reports no new errors, and the baselines are unchanged. The `phpstan/phpstan-phpunit` and `phpstan/phpstan-strict-rules` extensions are already at their latest versions. Follow-up to r65078. See #65817. --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 70928671aa6e3..e20f4c7806b6e 100644 --- a/composer.json +++ b/composer.json @@ -52,7 +52,7 @@ "squizlabs/php_codesniffer": "3.13.5", "wp-coding-standards/wpcs": "~3.4.1", "phpcompatibility/phpcompatibility-wp": "~2.1.3", - "phpstan/phpstan": "2.3.4", + "phpstan/phpstan": "2.3.5", "phpstan/phpstan-phpunit": "2.1.1", "phpstan/phpstan-strict-rules": "2.1.1", "yoast/phpunit-polyfills": "^1.1.0" From 680e3ea52283f8df1c7aafc6f90dba11d45230d9 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers <359867+desrosj@users.noreply.github.com> Date: Fri, 6 Nov 2026 11:02:47 -0500 Subject: [PATCH 2/2] Update the versions of PHP supported. WordPress 7.2 will support PHP 8.6. --- tests/phpstan/base.neon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpstan/base.neon b/tests/phpstan/base.neon index be98b5e1503cc..1c102ca47e7da 100644 --- a/tests/phpstan/base.neon +++ b/tests/phpstan/base.neon @@ -105,10 +105,10 @@ parameters: # Cache is stored locally, so it's available for CI. tmpDir: ../../.cache - # The Minimum PHP Version + # Supported PHP versions. phpVersion: min: 70400 - max: 80500 + max: 80600 # If it's not enforced by PHP we can't assume users are passing valid values. treatPhpDocTypesAsCertain: false