Skip to content

Commit

Permalink
offsetGet omit the deprecation notice in PHP 8.1 (#12)
Browse files Browse the repository at this point in the history
Co-authored-by: Dariusz Korsak <[email protected]>
  • Loading branch information
darkorsa and Dariusz Korsak authored Nov 4, 2022
1 parent 7596d9e commit c5dc1f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion .phpunit.result.cache

This file was deleted.

1 change: 1 addition & 0 deletions src/RateLimitOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class RateLimitOptions extends ArrayObject
*
* @return mixed|null
*/
#[\ReturnTypeWillChange]
public function offsetGet($index)
{
if (! $this->offsetExists($index) && array_key_exists($index, $this->defaultValues)) {
Expand Down

0 comments on commit c5dc1f6

Please sign in to comment.