adbario / php-dot-notation

Dot notation access to PHP arrays

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

php 8.1 deprecations

Selion05 opened this issue · comments

Hey, on 8.1 I get a few deprecations like

Deprecated: Return type of Adbar\Dot::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

  • ArrayAccess::offsetExists(mixed $offset): bool
  • ArrayAccess::offsetGet(mixed $offset): mixed
  • ArrayAccess::offsetSet(mixed $offset, mixed $value): void
  • ArrayAccess::offsetUnset(mixed $offset): void
  • Countable::count(): int
  • IteratorAggregate::getIterator(): Traversable
  • JsonSerializable::jsonSerialize(): mixed

can we add the ReturnTypeWillChange attribute?

This should be taken care of in this PR #22