Skip to content

Return type of ArrayAccess::offsetGet is incorrect #689

@ntm-dev

Description

@ntm-dev

My current php setted to 7.4:
image

Error Declaration of ArrayIterator::offsetGet($key) must be compatible with ArrayAccess::offsetGet(mixed $offset): mixed has been displayed:

image

But the mixed type available as of PHP 8.0.0

see PHP: Type declarations

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions