Skip to content

Commit cd48b86

Browse files
authored
Merge pull request #58 from rdohms/jrfnl-feature/php-8.1-fix-notices
PHP 8.1: fix deprecation notice
2 parents 3889dfd + 9a21eb0 commit cd48b86

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

composer.lock

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ArrayAccessible.php

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use ArrayAccess;
77
use ArrayIterator;
88
use IteratorAggregate;
9+
use ReturnTypeWillChange; // phpcs:ignore SlevomatCodingStandard.Namespaces.UnusedUses.UnusedUse
910
use Traversable;
1011

1112
use function array_key_exists;
@@ -38,6 +39,7 @@ public function offsetExists($offset): bool
3839
*
3940
* @return mixed
4041
*/
42+
#[ReturnTypeWillChange]
4143
public function offsetGet($offset)
4244
{
4345
return $this->array[$offset];

0 commit comments

Comments
 (0)