Commit c11e1aa1e1 for wordpress.org

commit c11e1aa1e1048f5be9678ef3fe93a0da3f88063c
Author: westonruter <westonruter@git.wordpress.org>
Date:   Tue Sep 15 20:28:49 2026 +0000

    Code Quality: Fix the variadic `@param` in `opens_block()`.

    The `@param` annotation for `$block_type` in `WP_Block_Processor::opens_block()` documented the type as `string[]`, while the method signature declares the variadic `string ...$block_type`. The PHPDoc specification documents a variadic parameter as its element type followed by `...$parameter_name`, which is how core annotates the others, such as in `Walker::walk()` and `walk_page_dropdown_tree()`. The array notation instead described `$block_type` as receiving a single array argument, which PHPStan reported as incompatible with the native type.

    With the last occurrence fixed, `tests/phpstan/baselines/parameter.phpDocType.neon` is now empty, so it is deleted along with its `includes` entry in `phpstan.neon.dist`, as the baseline header directs.

    Developed in https://github.com/WordPress/wordpress-develop/pull/13500.
    Follow-up to r60939, r63020.

    Props noruzzaman.
    See #65817.

    Built from https://develop.svn.wordpress.org/trunk@63630


    git-svn-id: http://core.svn.wordpress.org/trunk@62805 1a063a9b-81f0-0310-95a4-ce76da25c4cd

diff --git a/wp-includes/class-wp-block-processor.php b/wp-includes/class-wp-block-processor.php
index 1716fabf85..7c22dc1ea8 100644
--- a/wp-includes/class-wp-block-processor.php
+++ b/wp-includes/class-wp-block-processor.php
@@ -1573,8 +1573,8 @@ class WP_Block_Processor {
 	 *
 	 * @see self::is_block_type()
 	 *
-	 * @param string[] $block_type Optional. Is the matched block type one of these?
-	 *                             If none are provided, will not test block type.
+	 * @param string ...$block_type Optional. Is the matched block type one of these?
+	 *                              If none are provided, will not test block type.
 	 * @return bool Whether the matched block delimiter opens a block, and whether it
 	 *              opens a block of one of the given block types, if provided.
 	 */
diff --git a/wp-includes/version.php b/wp-includes/version.php
index ee13cf4ae1..e07b94f652 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '7.2-alpha-63628';
+$wp_version = '7.2-alpha-63630';

 /**
  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.