This commit is contained in:
Hanson.xyz Dev
2026-01-04 17:50:08 -06:00
parent 7e45ce0756
commit acc8ac87a0
4131 changed files with 232562 additions and 250244 deletions
+8 -11
View File
@@ -19,7 +19,6 @@ class WP_Block_List implements Iterator, ArrayAccess, Countable {
*
* @since 5.5.0
* @var array[]|WP_Block[]
* @access protected
*/
protected $blocks;
@@ -28,7 +27,6 @@ class WP_Block_List implements Iterator, ArrayAccess, Countable {
*
* @since 5.5.0
* @var array
* @access protected
*/
protected $available_context;
@@ -37,7 +35,6 @@ class WP_Block_List implements Iterator, ArrayAccess, Countable {
*
* @since 5.5.0
* @var WP_Block_Type_Registry
* @access protected
*/
protected $registry;
@@ -70,7 +67,7 @@ class WP_Block_List implements Iterator, ArrayAccess, Countable {
*
* @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]
@@ -85,8 +82,8 @@ class WP_Block_List implements Iterator, ArrayAccess, Countable {
*
* @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 ) {
@@ -108,8 +105,8 @@ class WP_Block_List implements Iterator, ArrayAccess, Countable {
*
* @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 ) {
@@ -127,7 +124,7 @@ class WP_Block_List implements Iterator, ArrayAccess, Countable {
*
* @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 ) {
@@ -153,7 +150,7 @@ class WP_Block_List implements Iterator, ArrayAccess, Countable {
*
* @link https://www.php.net/manual/en/iterator.current.php
*
* @return mixed Current element.
* @return WP_Block|null Current element.
*/
#[ReturnTypeWillChange]
public function current() {
@@ -167,7 +164,7 @@ class WP_Block_List implements Iterator, ArrayAccess, Countable {
*
* @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() {