Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance offset access by defining various access modes, and restrict which ones are available for DOM classes #3724

Draft
wants to merge 2 commits into
base: 2.0.x
Choose a base branch
from

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
1 participant