close
Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/wp-includes/class-wp-block-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function __construct( $blocks, $available_context = array(), $registry =
*
* @link https://www.php.net/manual/en/arrayaccess.offsetexists.php
*
* @param string $offset Offset of block to check for.
* @param int $offset Offset of block to check for.
* @return bool Whether block exists.
*/
#[ReturnTypeWillChange]
Expand All @@ -82,8 +82,8 @@ public function offsetExists( $offset ) {
*
* @link https://www.php.net/manual/en/arrayaccess.offsetget.php
*
* @param string $offset Offset of block value to retrieve.
* @return mixed|null Block value if exists, or null.
* @param int $offset Offset of block value to retrieve.
* @return WP_Block|null Block value if exists, or null.
*/
#[ReturnTypeWillChange]
public function offsetGet( $offset ) {
Expand All @@ -105,8 +105,8 @@ public function offsetGet( $offset ) {
*
* @link https://www.php.net/manual/en/arrayaccess.offsetset.php
*
* @param string $offset Offset of block value to set.
* @param mixed $value Block value.
* @param int $offset Offset of block value to set.
* @param array|WP_Block $value Block value.
*/
#[ReturnTypeWillChange]
public function offsetSet( $offset, $value ) {
Expand All @@ -124,7 +124,7 @@ public function offsetSet( $offset, $value ) {
*
* @link https://www.php.net/manual/en/arrayaccess.offsetunset.php
*
* @param string $offset Offset of block value to unset.
* @param int $offset Offset of block value to unset.
*/
#[ReturnTypeWillChange]
public function offsetUnset( $offset ) {
Expand All @@ -150,7 +150,7 @@ public function rewind() {
*
* @link https://www.php.net/manual/en/iterator.current.php
*
* @return mixed Current element.
* @return WP_Block|null Current element.
*/
#[ReturnTypeWillChange]
public function current() {
Expand All @@ -164,7 +164,7 @@ public function current() {
*
* @link https://www.php.net/manual/en/iterator.key.php
*
* @return mixed Key of the current element.
* @return int|null Key of the current element.
*/
#[ReturnTypeWillChange]
public function key() {
Expand Down
Loading