Commit ed58a2902b for wordpress.org
commit ed58a2902b47d6bf9de8d817f75cbe851782dc36
Author: westonruter <westonruter@git.wordpress.org>
Date: Tue Nov 17 23:14:59 2026 +0000
Build/Test Tools: Include PHPStan baselines via a PHP loader.
The per-identifier baselines were listed one by one in `phpstan.neon.dist`, between markers that `composer phpstan:baselines` rewrote whenever a baseline was added or deleted, so every change that retired a baseline edited the same lines and two such changes conflicted. They are now included through `tests/phpstan/baselines/loader.php`, a PHP configuration that returns the baselines found in its directory, since NEON can only include files by name. A baseline takes effect when it is added and stops when it is deleted, with no edit of the configuration.
When regenerating, only the baselines being rewritten are suppressed: the generator passes their directory in the `WP_PHPSTAN_GENERATING_BASELINES` environment variable, and the loader there returns nothing. This works even when the configuration is included by another, such as a local `phpstan.neon`, which previously left every baseline in force and got them deleted. Baselines in other directories stay in force, so a stricter configuration with baselines of its own records only the errors the default ones do not cover.
Developed in https://github.com/WordPress/wordpress-develop/pull/16049.
Follow-up to r63019, r63294, r65372.
Props westonruter, apermo.
See #65817.
Built from https://develop.svn.wordpress.org/trunk@65566
git-svn-id: http://core.svn.wordpress.org/trunk@64639 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 9bc1fd94ed..6fa5c50b1e 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.2-RC1-65565';
+$wp_version = '7.2-RC1-65566';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.