Skip to content

Commit aec932a

Browse files
committed
Add ReturnTypeWillChange attributes
1 parent 2a0a9d6 commit aec932a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

wordpress-stubs.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18530,6 +18530,7 @@ public function normalizeCookie($cookie, $key = \null)
1853018530
* @param string $key Item key
1853118531
* @return boolean Does the item exist?
1853218532
*/
18533+
#[ReturnTypeWillChange]
1853318534
public function offsetExists($key)
1853418535
{
1853518536
}
@@ -18539,6 +18540,7 @@ public function offsetExists($key)
1853918540
* @param string $key Item key
1854018541
* @return string|null Item value (null if offsetExists is false)
1854118542
*/
18543+
#[ReturnTypeWillChange]
1854218544
public function offsetGet($key)
1854318545
{
1854418546
}
@@ -18550,6 +18552,7 @@ public function offsetGet($key)
1855018552
* @param string $key Item name
1855118553
* @param string $value Item value
1855218554
*/
18555+
#[ReturnTypeWillChange]
1855318556
public function offsetSet($key, $value)
1855418557
{
1855518558
}
@@ -18558,6 +18561,7 @@ public function offsetSet($key, $value)
1855818561
*
1855918562
* @param string $key
1856018563
*/
18564+
#[ReturnTypeWillChange]
1856118565
public function offsetUnset($key)
1856218566
{
1856318567
}
@@ -18566,6 +18570,7 @@ public function offsetUnset($key)
1856618570
*
1856718571
* @return ArrayIterator
1856818572
*/
18573+
#[ReturnTypeWillChange]
1856918574
public function getIterator()
1857018575
{
1857118576
}
@@ -20521,6 +20526,7 @@ public function __construct(array $data = array())
2052120526
* @param string $key Item key
2052220527
* @return boolean Does the item exist?
2052320528
*/
20529+
#[ReturnTypeWillChange]
2052420530
public function offsetExists($key)
2052520531
{
2052620532
}
@@ -20530,6 +20536,7 @@ public function offsetExists($key)
2053020536
* @param string $key Item key
2053120537
* @return string|null Item value (null if offsetExists is false)
2053220538
*/
20539+
#[ReturnTypeWillChange]
2053320540
public function offsetGet($key)
2053420541
{
2053520542
}
@@ -20541,6 +20548,7 @@ public function offsetGet($key)
2054120548
* @param string $key Item name
2054220549
* @param string $value Item value
2054320550
*/
20551+
#[ReturnTypeWillChange]
2054420552
public function offsetSet($key, $value)
2054520553
{
2054620554
}
@@ -20549,6 +20557,7 @@ public function offsetSet($key, $value)
2054920557
*
2055020558
* @param string $key
2055120559
*/
20560+
#[ReturnTypeWillChange]
2055220561
public function offsetUnset($key)
2055320562
{
2055420563
}
@@ -20557,6 +20566,7 @@ public function offsetUnset($key)
2055720566
*
2055820567
* @return ArrayIterator
2055920568
*/
20569+
#[ReturnTypeWillChange]
2056020570
public function getIterator()
2056120571
{
2056220572
}
@@ -21288,12 +21298,14 @@ public function __construct($data, $callback)
2128821298
*
2128921299
* @return string
2129021300
*/
21301+
#[ReturnTypeWillChange]
2129121302
public function current()
2129221303
{
2129321304
}
2129421305
/**
2129521306
* @inheritdoc
2129621307
*/
21308+
#[ReturnTypeWillChange]
2129721309
public function unserialize($serialized)
2129821310
{
2129921311
}
@@ -21302,6 +21314,7 @@ public function unserialize($serialized)
2130221314
*
2130321315
* @phpcs:disable PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.MethodDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.NewMagicMethods.__unserializeFound
2130421316
*/
21317+
#[ReturnTypeWillChange]
2130521318
public function __unserialize($serialized)
2130621319
{
2130721320
}

0 commit comments

Comments
 (0)