diff --git a/phpstan.neon.dist b/phpstan.neon.dist index cc4579365122b..21f5961f301c7 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -64,7 +64,6 @@ includes: - tests/phpstan/baselines/offsetAssign.valueType.neon - tests/phpstan/baselines/parameter.defaultValue.neon - tests/phpstan/baselines/parameter.notFound.neon - - tests/phpstan/baselines/parameter.phpDocType.neon - tests/phpstan/baselines/parameterByRef.type.neon - tests/phpstan/baselines/parameterByRef.unusedType.neon - tests/phpstan/baselines/property.defaultValue.neon diff --git a/src/wp-includes/class-wp-block-processor.php b/src/wp-includes/class-wp-block-processor.php index 1716fabf859ea..7c22dc1ea87cd 100644 --- a/src/wp-includes/class-wp-block-processor.php +++ b/src/wp-includes/class-wp-block-processor.php @@ -1573,8 +1573,8 @@ public static function are_equal_block_types( string $a_text, int $a_at, int $a_ * * @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/tests/phpstan/baselines/parameter.phpDocType.neon b/tests/phpstan/baselines/parameter.phpDocType.neon deleted file mode 100644 index db8a7f3b32466..0000000000000 --- a/tests/phpstan/baselines/parameter.phpDocType.neon +++ /dev/null @@ -1,25 +0,0 @@ -# PHPStan baseline for the `parameter.phpDocType` errors in WordPress core. -# -# https://phpstan.org/error-identifiers/parameter.phpDocType -# -# Each entry is scoped to a single file and carries an exact occurrence count, -# so that a new instance is reported as a new error rather than being absorbed -# silently. Fixing an occurrence therefore means decrementing or removing its -# entry here as part of the same change. -# -# The goal is to empty this file and delete it, along with the `includes` entry -# for it in phpstan.neon.dist. -# -# Generated by `composer phpstan:baselines`. Do not edit by hand; regenerate with -# -# composer phpstan:baselines -- --identifier=parameter.phpDocType -# -# which reruns the analysis with this file suppressed so the errors surface again. - -parameters: - ignoreErrors: - - - message: '#^PHPDoc tag @param for parameter \$block_type with type array\ is incompatible with native type string\.$#' - identifier: parameter.phpDocType - count: 1 - path: ../../../src/wp-includes/class-wp-block-processor.php