diff --git a/src/wp-includes/interactivity-api/class-wp-interactivity-api.php b/src/wp-includes/interactivity-api/class-wp-interactivity-api.php index 0ee2ba8eff20c..095f12380dfbe 100644 --- a/src/wp-includes/interactivity-api/class-wp-interactivity-api.php +++ b/src/wp-includes/interactivity-api/class-wp-interactivity-api.php @@ -138,8 +138,8 @@ final class WP_Interactivity_API { * @since 6.5.0 * @since 6.6.0 The `$store_namespace` param is optional. * - * @param string $store_namespace Optional. The unique store namespace identifier. - * @param array $state Optional. The array that will be merged with the existing state for the specified + * @param string|null $store_namespace Optional. The unique store namespace identifier. + * @param array|null $state Optional. The array that will be merged with the existing state for the specified * store namespace. * @return array The current state for the specified store namespace. This will be the updated state if a $state * argument was provided. @@ -311,7 +311,7 @@ public function filter_script_module_interactivity_data( array $data ): array { * * @since 6.6.0 * - * @param string $store_namespace Optional. The unique store namespace identifier. + * @param string|null $store_namespace Optional. The unique store namespace identifier. */ public function get_context( ?string $store_namespace = null ): array { if ( null === $this->context_stack ) { diff --git a/src/wp-includes/interactivity-api/interactivity-api.php b/src/wp-includes/interactivity-api/interactivity-api.php index 7fa803180552b..afdc4ccf4b3ae 100644 --- a/src/wp-includes/interactivity-api/interactivity-api.php +++ b/src/wp-includes/interactivity-api/interactivity-api.php @@ -53,8 +53,8 @@ function wp_interactivity_process_directives( string $html ): string { * @since 6.5.0 * @since 6.6.0 The namespace can be omitted when called inside derived state getters. * - * @param string $store_namespace The unique store namespace identifier. - * @param array $state Optional. The array that will be merged with the existing state for the specified + * @param string|null $store_namespace The unique store namespace identifier. + * @param array $state Optional. The array that will be merged with the existing state for the specified * store namespace. * @return array The state for the specified store namespace. This will be the updated state if a $state argument was * provided. @@ -119,7 +119,7 @@ function wp_interactivity_data_wp_context( array $context, string $store_namespa * * @since 6.6.0 * - * @param string $store_namespace Optional. The unique store namespace identifier. + * @param string|null $store_namespace Optional. The unique store namespace identifier. * @return array The context for the specified store namespace. */ function wp_interactivity_get_context( ?string $store_namespace = null ): array {