Commit 157119516f for wordpress.org
commit 157119516f0476f7e8f960572287804b9eca5efc
Author: westonruter <westonruter@git.wordpress.org>
Date: Tue Nov 3 17:52:04 2026 +0000
Build/Test Tools: Fix static analysis issues in `HashNotationVisitor`.
This fixes the level-10 PHPStan errors that predate the hash notation visitor's recent changes, along with a few PhpStorm inspection warnings, without changing the `@phpstan-*` tags the visitor derives across `src/`.
Most of the errors came from one limit: an entry in a hash can open a hash of its own, and an array shape cannot refer to itself, so every nested entry was `mixed`. Entries are therefore read into a new `HashEntry` class, whose children are typed as entries in turn. The rest came from writes through a list offset, which PHPStan reads as adding an incomplete element, so a tag or entry is now completed before it is added to its list. String types are also narrowed where possible, though an entry's type and key are only non-empty strings, since `0` is valid as either.
Developed in https://github.com/WordPress/wordpress-develop/pull/15384.
Follow-up to r63420, r63789, r65217.
Props westonruter, lancewillett.
See #65817.
Built from https://develop.svn.wordpress.org/trunk@65246
git-svn-id: http://core.svn.wordpress.org/trunk@64395 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-includes/version.php b/wp-includes/version.php
index eaf9a391f4..1d39a1414e 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.2-beta4-65245';
+$wp_version = '7.2-beta4-65246';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.