@@ -67,7 +67,7 @@ public function __construct( $blocks, $available_context = array(), $registry =
67
67
*
68
68
* @link https://www.php.net/manual/en/arrayaccess.offsetexists.php
69
69
*
70
- * @param string $offset Offset of block to check for.
70
+ * @param int $offset Offset of block to check for.
71
71
* @return bool Whether block exists.
72
72
*/
73
73
#[ReturnTypeWillChange]
@@ -82,8 +82,8 @@ public function offsetExists( $offset ) {
82
82
*
83
83
* @link https://www.php.net/manual/en/arrayaccess.offsetget.php
84
84
*
85
- * @param string $offset Offset of block value to retrieve.
86
- * @return mixed |null Block value if exists, or null.
85
+ * @param int $offset Offset of block value to retrieve.
86
+ * @return WP_Block |null Block value if exists, or null.
87
87
*/
88
88
#[ReturnTypeWillChange]
89
89
public function offsetGet ( $ offset ) {
@@ -105,8 +105,8 @@ public function offsetGet( $offset ) {
105
105
*
106
106
* @link https://www.php.net/manual/en/arrayaccess.offsetset.php
107
107
*
108
- * @param string $offset Offset of block value to set.
109
- * @param mixed $value Block value.
108
+ * @param int $offset Offset of block value to set.
109
+ * @param array|WP_Block $value Block value.
110
110
*/
111
111
#[ReturnTypeWillChange]
112
112
public function offsetSet ( $ offset , $ value ) {
@@ -124,7 +124,7 @@ public function offsetSet( $offset, $value ) {
124
124
*
125
125
* @link https://www.php.net/manual/en/arrayaccess.offsetunset.php
126
126
*
127
- * @param string $offset Offset of block value to unset.
127
+ * @param int $offset Offset of block value to unset.
128
128
*/
129
129
#[ReturnTypeWillChange]
130
130
public function offsetUnset ( $ offset ) {
@@ -150,7 +150,7 @@ public function rewind() {
150
150
*
151
151
* @link https://www.php.net/manual/en/iterator.current.php
152
152
*
153
- * @return mixed Current element.
153
+ * @return WP_Block|null Current element.
154
154
*/
155
155
#[ReturnTypeWillChange]
156
156
public function current () {
@@ -164,7 +164,7 @@ public function current() {
164
164
*
165
165
* @link https://www.php.net/manual/en/iterator.key.php
166
166
*
167
- * @return mixed Key of the current element.
167
+ * @return int|null Key of the current element.
168
168
*/
169
169
#[ReturnTypeWillChange]
170
170
public function key () {
0 commit comments