Skip to content

Commit d63cd06

Browse files
committed
Merge branch '5.3' into 5.4
* 5.3: Fix return types for PHP 8.1
2 parents 2eb48b0 + ce7b20d commit d63cd06

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
@@ -118,6 +118,7 @@ public function hasArgument(string $key)
118118
*
119119
* @throws \InvalidArgumentException if key does not exist in $this->args
120120
*/
121+
#[\ReturnTypeWillChange]
121122
public function offsetGet($key)
122123
{
123124
return $this->getArgument($key);
@@ -131,6 +132,7 @@ public function offsetGet($key)
131132
*
132133
* @return void
133134
*/
135+
#[\ReturnTypeWillChange]
134136
public function offsetSet($key, $value)
135137
{
136138
$this->setArgument($key, $value);
@@ -143,6 +145,7 @@ public function offsetSet($key, $value)
143145
*
144146
* @return void
145147
*/
148+
#[\ReturnTypeWillChange]
146149
public function offsetUnset($key)
147150
{
148151
if ($this->hasArgument($key)) {
@@ -157,6 +160,7 @@ public function offsetUnset($key)
157160
*
158161
* @return bool
159162
*/
163+
#[\ReturnTypeWillChange]
160164
public function offsetExists($key)
161165
{
162166
return $this->hasArgument($key);
@@ -167,6 +171,7 @@ public function offsetExists($key)
167171
*
168172
* @return \ArrayIterator
169173
*/
174+
#[\ReturnTypeWillChange]
170175
public function getIterator()
171176
{
172177
return new \ArrayIterator($this->arguments);

0 commit comments

Comments
 (0)