Skip to content

Commit

Permalink
php 8.1 ArrayAccess deprecations fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rudiedirkx committed Feb 27, 2023
1 parent 4c6b64e commit 21a5d01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Routing/Meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public function modifyCollection(EndpointCollection $endpoints, ReflectionClass
*
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists($offset): bool
{
return array_key_exists($offset, $this->values);
Expand All @@ -72,6 +73,7 @@ public function offsetExists($offset): bool
*
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return $this->values[$offset];
Expand All @@ -85,6 +87,7 @@ public function offsetGet($offset)
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
$this->values[$offset] = $value;
Expand All @@ -97,6 +100,7 @@ public function offsetSet($offset, $value)
*
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->values[$offset]);
Expand Down

0 comments on commit 21a5d01

Please sign in to comment.