wp/wp-includes/rest-api/class-wp-rest-request.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
--- a/wp/wp-includes/rest-api/class-wp-rest-request.php	Wed Sep 21 18:19:35 2022 +0200
+++ b/wp/wp-includes/rest-api/class-wp-rest-request.php	Tue Sep 27 16:37:53 2022 +0200
@@ -378,8 +378,8 @@
 		 *
 		 * @since 4.4.0
 		 *
-		 * @param string[]        $order Array of types to check, in order of priority.
-		 * @param WP_REST_Request $this  The request object.
+		 * @param string[]        $order   Array of types to check, in order of priority.
+		 * @param WP_REST_Request $request The request object.
 		 */
 		return apply_filters( 'rest_request_parameter_order', $order, $this );
 	}
@@ -957,6 +957,7 @@
 	 * @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 @@
 	 * @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 @@
 	 * @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 @@
 	 *
 	 * @param string $offset Parameter name.
 	 */
+	#[ReturnTypeWillChange]
 	public function offsetUnset( $offset ) {
 		$order = $this->get_parameter_order();