From ab9253ae823cf3fd6ce0a5d43c0f6b48f5caa23c Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Mon, 16 Nov 2026 15:11:59 -0800 Subject: [PATCH 1/2] PHPStan: Update to 2.3.6 When only part of the project is analyzed, such as a single directory or a list of files, PHPStan 2.3.6 no longer reports `ignoreErrors` entries as unmatched merely because what they ignore lies outside the analysis. The result cache also now tracks the symbols each file looked up, rather than reanalyzing every file with errors on each run. The release adds full support for PHP 8.6 and float range types, along with many fixes to type narrowing. The analysis still reports no errors, and no ignore goes stale, so the baseline is unchanged. The `WP_REST_Request` offset ignores stay, since the PHPStan fix they wait on (phpstan/phpstan-src#6903) is not yet merged. Co-Authored-By: Claude Opus 5.5 (medium effort) Claude-Session: https://claude.ai/code/session_01Tnky3Grhn8Rv7MidzhrtXU Claude-Code-Session-Id: d102d8d5-ffa7-4c14-add5-1e05d41fe751 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index cbec2629e9ec6e..611b8e2b6bde02 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ "yoast/phpunit-polyfills": "^1.1.0", "gutenberg/gutenberg-coding-standards": "@dev", "phpstan/extension-installer": "1.4.3", - "phpstan/phpstan": "2.3.5", + "phpstan/phpstan": "2.3.6", "phpstan/phpstan-phpunit": "2.1.1", "phpstan/phpstan-strict-rules": "2.1.1", "php-stubs/wordpress-stubs": "@dev", From 27f1fd1cb9553b7a395948000dcb510d311e887e Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Mon, 16 Nov 2026 15:12:30 -0800 Subject: [PATCH 2/2] PHPStan: Update phpstan-phpunit to 2.1.2 The extension now narrows types after `assertGreaterThan()` and `assertLessThan()`, and reports a data provider that provides no data sets. Neither changes what the analysis reports, so the baseline is unchanged. Co-Authored-By: Claude Opus 5.5 (medium effort) Claude-Session: https://claude.ai/code/session_01Tnky3Grhn8Rv7MidzhrtXU Claude-Code-Session-Id: d102d8d5-ffa7-4c14-add5-1e05d41fe751 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 611b8e2b6bde02..d1ff1bedc9fce0 100644 --- a/composer.json +++ b/composer.json @@ -41,7 +41,7 @@ "gutenberg/gutenberg-coding-standards": "@dev", "phpstan/extension-installer": "1.4.3", "phpstan/phpstan": "2.3.6", - "phpstan/phpstan-phpunit": "2.1.1", + "phpstan/phpstan-phpunit": "2.1.2", "phpstan/phpstan-strict-rules": "2.1.1", "php-stubs/wordpress-stubs": "@dev", "php-stubs/wordpress-tests-stubs": "7.1.0",