Skip to content

Commit 2fe8168

Browse files
committed
Fix return types for PHP 8.1
1 parent 958a128 commit 2fe8168

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

GenericEvent.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ public function hasArgument($key)
123123
*
124124
* @throws \InvalidArgumentException if key does not exist in $this->args
125125
*/
126+
#[\ReturnTypeWillChange]
126127
public function offsetGet($key)
127128
{
128129
return $this->getArgument($key);
@@ -136,6 +137,7 @@ public function offsetGet($key)
136137
*
137138
* @return void
138139
*/
140+
#[\ReturnTypeWillChange]
139141
public function offsetSet($key, $value)
140142
{
141143
$this->setArgument($key, $value);
@@ -148,6 +150,7 @@ public function offsetSet($key, $value)
148150
*
149151
* @return void
150152
*/
153+
#[\ReturnTypeWillChange]
151154
public function offsetUnset($key)
152155
{
153156
if ($this->hasArgument($key)) {
@@ -162,6 +165,7 @@ public function offsetUnset($key)
162165
*
163166
* @return bool
164167
*/
168+
#[\ReturnTypeWillChange]
165169
public function offsetExists($key)
166170
{
167171
return $this->hasArgument($key);
@@ -172,6 +176,7 @@ public function offsetExists($key)
172176
*
173177
* @return \ArrayIterator
174178
*/
179+
#[\ReturnTypeWillChange]
175180
public function getIterator()
176181
{
177182
return new \ArrayIterator($this->arguments);

0 commit comments

Comments
 (0)