Skip to content

Commit

Permalink
Merge pull request #80 from WyriHaximus/4.x-add-_#_ReturnTypeWillChan…
Browse files Browse the repository at this point in the history
…ge_to-payload-offsetget

[4.x] Add #[\ReturnTypeWillChange] to Payload::offsetGet
  • Loading branch information
WyriHaximus authored Feb 8, 2022
2 parents 7aebab1 + 0c87afd commit a484664
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Messages/Payload.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public function offsetUnset($offset): void
*
* @return mixed|null
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return $this->payload[$offset] ?? null;
Expand Down

0 comments on commit a484664

Please sign in to comment.