Skip to content

Conversation

Girgias
Copy link
Contributor

@Girgias Girgias commented Dec 11, 2024

This is very W.I.P. and I think this is the correct way to fix it, but I don't know if I should update Type::isOffsetAccessible() to pass in the $mode parameter or not.

This would fix phpstan/phpstan#12235 and do preliminary work to support https://wiki.php.net/rfc/container-offset-behaviour if/when it lands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DOMNamedNodeMap, Dom\NamedNodeMap, DOMNodeList, Dom\NodeList, Dom\HTMLCollection, and Dom\DtdNamedNodeMap raises Cannot access offset error

1 participant