@@ -67,7 +67,7 @@ public function __construct( $blocks, $available_context = array(), $registry =
6767 *
6868 * @link https://www.php.net/manual/en/arrayaccess.offsetexists.php
6969 *
70- * @param string $offset Offset of block to check for.
70+ * @param int $offset Offset of block to check for.
7171 * @return bool Whether block exists.
7272 */
7373 #[ReturnTypeWillChange]
@@ -82,8 +82,8 @@ public function offsetExists( $offset ) {
8282 *
8383 * @link https://www.php.net/manual/en/arrayaccess.offsetget.php
8484 *
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.
8787 */
8888 #[ReturnTypeWillChange]
8989 public function offsetGet ( $ offset ) {
@@ -105,8 +105,8 @@ public function offsetGet( $offset ) {
105105 *
106106 * @link https://www.php.net/manual/en/arrayaccess.offsetset.php
107107 *
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.
110110 */
111111 #[ReturnTypeWillChange]
112112 public function offsetSet ( $ offset , $ value ) {
@@ -124,7 +124,7 @@ public function offsetSet( $offset, $value ) {
124124 *
125125 * @link https://www.php.net/manual/en/arrayaccess.offsetunset.php
126126 *
127- * @param string $offset Offset of block value to unset.
127+ * @param int $offset Offset of block value to unset.
128128 */
129129 #[ReturnTypeWillChange]
130130 public function offsetUnset ( $ offset ) {
@@ -150,7 +150,7 @@ public function rewind() {
150150 *
151151 * @link https://www.php.net/manual/en/iterator.current.php
152152 *
153- * @return mixed Current element.
153+ * @return WP_Block|null Current element.
154154 */
155155 #[ReturnTypeWillChange]
156156 public function current () {
@@ -164,7 +164,7 @@ public function current() {
164164 *
165165 * @link https://www.php.net/manual/en/iterator.key.php
166166 *
167- * @return mixed Key of the current element.
167+ * @return int|null Key of the current element.
168168 */
169169 #[ReturnTypeWillChange]
170170 public function key () {
0 commit comments