diff --git a/src/wp-includes/rest-api/class-wp-rest-request.php b/src/wp-includes/rest-api/class-wp-rest-request.php index 7c8d189906..87689a94a5 100644 --- a/src/wp-includes/rest-api/class-wp-rest-request.php +++ b/src/wp-includes/rest-api/class-wp-rest-request.php @@ -957,6 +957,7 @@ class WP_REST_Request implements ArrayAccess { * @param string $offset Parameter name. * @return bool Whether the parameter is set. */ + #[ReturnTypeWillChange] public function offsetExists( $offset ) { $order = $this->get_parameter_order(); @@ -977,6 +978,7 @@ class WP_REST_Request implements ArrayAccess { * @param string $offset Parameter name. * @return mixed|null Value if set, null otherwise. */ + #[ReturnTypeWillChange] public function offsetGet( $offset ) { return $this->get_param( $offset ); } @@ -989,6 +991,7 @@ class WP_REST_Request implements ArrayAccess { * @param string $offset Parameter name. * @param mixed $value Parameter value. */ + #[ReturnTypeWillChange] public function offsetSet( $offset, $value ) { $this->set_param( $offset, $value ); } @@ -1000,6 +1003,7 @@ class WP_REST_Request implements ArrayAccess { * * @param string $offset Parameter name. */ + #[ReturnTypeWillChange] public function offsetUnset( $offset ) { $order = $this->get_parameter_order();