Skip to content

Commit fbc48fa

Browse files
committed
Merge branch '4.x-dev' of https://github.com/joomla-framework/event into 4.x-dev
2 parents c8b2f7d + bccc276 commit fbc48fa

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ Tests/ export-ignore
44
.editorconfig export-ignore
55
.gitattributes export-ignore
66
.gitignore export-ignore
7+
phpstan.neon export-ignore
78
phpunit.xml.dist export-ignore
89
ruleset.xml export-ignore

src/EventImmutable.php

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

0 commit comments

Comments
 (0)