diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/rest-api/search/class-wp-rest-search-handler.php --- a/wp/wp-includes/rest-api/search/class-wp-rest-search-handler.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-includes/rest-api/search/class-wp-rest-search-handler.php Fri Sep 05 18:40:08 2025 +0200 @@ -12,6 +12,7 @@ * * @since 5.0.0 */ +#[AllowDynamicProperties] abstract class WP_REST_Search_Handler { /** @@ -36,7 +37,7 @@ * Object subtypes managed by this search handler. * * @since 5.0.0 - * @var array + * @var string[] */ protected $subtypes = array(); @@ -56,7 +57,7 @@ * * @since 5.0.0 * - * @return array Array of object subtype identifiers. + * @return string[] Array of object subtype identifiers. */ public function get_subtypes() { return $this->subtypes;