adbario/php-dot-notation

Deprecation Notice? Adbar\Dot should either be compatible with ArrayAccess

Closed this issue · 2 comments

Deprecation Notice: 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 in /home/luke.english/sftp/instance/vendor/adbario/php-dot-notation/src/Dot.php:510
Deprecation Notice: Return type of Adbar\Dot::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/luke.english/sftp/instance/vendor/adbario/php-dot-notation/src/Dot.php:521
Deprecation Notice: Return type of Adbar\Dot::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/luke.english/sftp/instance/vendor/adbario/php-dot-notation/src/Dot.php:532
Deprecation Notice: Return type of Adbar\Dot::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/luke.english/sftp/instance/vendor/adbario/php-dot-notation/src/Dot.php:548
Deprecation Notice: Return type of Adbar\Dot::count($key = null) should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/luke.english/sftp/instance/vendor/adbario/php-dot-notation/src/Dot.php:565
Deprecation Notice: Return type of Adbar\Dot::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/luke.english/sftp/instance/vendor/adbario/php-dot-notation/src/Dot.php:581
Deprecation Notice: Return type of Adbar\Dot::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/luke.english/sftp/instance/vendor/adbario/php-dot-notation/src/Dot.php:597

This is on PHP 8.1

Hi, which version of php-dot-notation you're using?

Version 3.x should be fully compatible, and to version 2.x we have just added support up to PHP 8.1