From 94ccee078746aa29527894917b112f3fe30511ed Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Sun, 23 Nov 2025 05:08:29 +0000 Subject: [PATCH] Docs: Fix phpdoc types for `WP_Speculation_Rules` members. What was previously `mixed` is actually a speculation rule which can be more accurately be typed as `array`. Additionally, the return value of `jsonSerialize` is fixed to indicate it returns an array of lists as opposed an array of associative arrays. Developed in https://github.com/WordPress/wordpress-develop/pull/8946 Follow-up to [59837]. Props justlevine, johnbillion, westonruter. See #64238, #63268, #62503. Built from https://develop.svn.wordpress.org/trunk@61280 git-svn-id: http://core.svn.wordpress.org/trunk@60592 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-speculation-rules.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-speculation-rules.php b/wp-includes/class-wp-speculation-rules.php index 8d23eefe12..bca9e28a38 100644 --- a/wp-includes/class-wp-speculation-rules.php +++ b/wp-includes/class-wp-speculation-rules.php @@ -21,7 +21,7 @@ final class WP_Speculation_Rules implements JsonSerializable { * Every `$rules` value is a map of `$id => $rule` pairs. * * @since 6.8.0 - * @var array> + * @var array>> */ private $rules_by_mode = array(); @@ -230,7 +230,7 @@ final class WP_Speculation_Rules implements JsonSerializable { * * @since 6.8.0 * - * @return array> Speculation rules data. + * @return array>> Speculation rules data. */ #[ReturnTypeWillChange] public function jsonSerialize() { diff --git a/wp-includes/version.php b/wp-includes/version.php index f8ea1c1984..496f993c27 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '7.0-alpha-61279'; +$wp_version = '7.0-alpha-61280'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.