Skip to content

Commit aabdac5

Browse files
committed
Add ReturnTypeWillChange attribute to offsetSet and public function offsetUnset($name) methods
1 parent 66ae600 commit aabdac5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/EventImmutable.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public function __construct($name, array $arguments = [])
6767
* @since 1.0
6868
* @throws BadMethodCallException
6969
*/
70+
#[\ReturnTypeWillChange]
7071
public function offsetSet($name, $value)
7172
{
7273
throw new BadMethodCallException(
@@ -89,6 +90,7 @@ public function offsetSet($name, $value)
8990
*
9091
* @since 1.0
9192
*/
93+
#[\ReturnTypeWillChange]
9294
public function offsetUnset($name)
9395
{
9496
throw new BadMethodCallException(

0 commit comments

Comments
 (0)