--- a/wp/wp-includes/class-wp-block-list.php Wed Sep 21 18:19:35 2022 +0200
+++ b/wp/wp-includes/class-wp-block-list.php Tue Sep 27 16:37:53 2022 +0200
@@ -72,6 +72,7 @@
* @param string $index Index of block to check.
* @return bool Whether block exists.
*/
+ #[ReturnTypeWillChange]
public function offsetExists( $index ) {
return isset( $this->blocks[ $index ] );
}
@@ -86,6 +87,7 @@
* @param string $index Index of block value to retrieve.
* @return mixed|null Block value if exists, or null.
*/
+ #[ReturnTypeWillChange]
public function offsetGet( $index ) {
$block = $this->blocks[ $index ];
@@ -107,6 +109,7 @@
* @param string $index Index of block value to set.
* @param mixed $value Block value.
*/
+ #[ReturnTypeWillChange]
public function offsetSet( $index, $value ) {
if ( is_null( $index ) ) {
$this->blocks[] = $value;
@@ -124,6 +127,7 @@
*
* @param string $index Index of block value to unset.
*/
+ #[ReturnTypeWillChange]
public function offsetUnset( $index ) {
unset( $this->blocks[ $index ] );
}
@@ -135,6 +139,7 @@
*
* @link https://www.php.net/manual/en/iterator.rewind.php
*/
+ #[ReturnTypeWillChange]
public function rewind() {
reset( $this->blocks );
}
@@ -148,6 +153,7 @@
*
* @return mixed Current element.
*/
+ #[ReturnTypeWillChange]
public function current() {
return $this->offsetGet( $this->key() );
}
@@ -161,6 +167,7 @@
*
* @return mixed Key of the current element.
*/
+ #[ReturnTypeWillChange]
public function key() {
return key( $this->blocks );
}
@@ -172,6 +179,7 @@
*
* @link https://www.php.net/manual/en/iterator.next.php
*/
+ #[ReturnTypeWillChange]
public function next() {
next( $this->blocks );
}
@@ -183,6 +191,7 @@
*
* @link https://www.php.net/manual/en/iterator.valid.php
*/
+ #[ReturnTypeWillChange]
public function valid() {
return null !== key( $this->blocks );
}
@@ -196,6 +205,7 @@
*
* @return int Block count.
*/
+ #[ReturnTypeWillChange]
public function count() {
return count( $this->blocks );
}