diff --git a/wp-includes/class-wp-hook.php b/wp-includes/class-wp-hook.php index 432a01600f..cb49271ba4 100644 --- a/wp-includes/class-wp-hook.php +++ b/wp-includes/class-wp-hook.php @@ -437,6 +437,7 @@ final class WP_Hook implements Iterator, ArrayAccess { * @param mixed $offset An offset to check for. * @return bool True if the offset exists, false otherwise. */ + #[ReturnTypeWillChange] public function offsetExists( $offset ) { return isset( $this->callbacks[ $offset ] ); } @@ -451,6 +452,7 @@ final class WP_Hook implements Iterator, ArrayAccess { * @param mixed $offset The offset to retrieve. * @return mixed If set, the value at the specified offset, null otherwise. */ + #[ReturnTypeWillChange] public function offsetGet( $offset ) { return isset( $this->callbacks[ $offset ] ) ? $this->callbacks[ $offset ] : null; } @@ -465,6 +467,7 @@ final class WP_Hook implements Iterator, ArrayAccess { * @param mixed $offset The offset to assign the value to. * @param mixed $value The value to set. */ + #[ReturnTypeWillChange] public function offsetSet( $offset, $value ) { if ( is_null( $offset ) ) { $this->callbacks[] = $value; @@ -482,6 +485,7 @@ final class WP_Hook implements Iterator, ArrayAccess { * * @param mixed $offset The offset to unset. */ + #[ReturnTypeWillChange] public function offsetUnset( $offset ) { unset( $this->callbacks[ $offset ] ); } @@ -495,6 +499,7 @@ final class WP_Hook implements Iterator, ArrayAccess { * * @return array Of callbacks at current priority. */ + #[ReturnTypeWillChange] public function current() { return current( $this->callbacks ); } @@ -508,6 +513,7 @@ final class WP_Hook implements Iterator, ArrayAccess { * * @return array Of callbacks at next priority. */ + #[ReturnTypeWillChange] public function next() { return next( $this->callbacks ); } @@ -521,6 +527,7 @@ final class WP_Hook implements Iterator, ArrayAccess { * * @return mixed Returns current priority on success, or NULL on failure */ + #[ReturnTypeWillChange] public function key() { return key( $this->callbacks ); } @@ -534,6 +541,7 @@ final class WP_Hook implements Iterator, ArrayAccess { * * @return bool Whether the current position is valid. */ + #[ReturnTypeWillChange] public function valid() { return key( $this->callbacks ) !== null; } @@ -545,6 +553,7 @@ final class WP_Hook implements Iterator, ArrayAccess { * * @link https://www.php.net/manual/en/iterator.rewind.php */ + #[ReturnTypeWillChange] public function rewind() { reset( $this->callbacks ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index dc3e5a876b..609c53073e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51529'; +$wp_version = '5.9-alpha-51530'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.