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

Revert "Make array access on possible false tolerant with isset" #3042

Closed
wants to merge 3,328 commits into from

Conversation

rajyan
Copy link
Contributor

@rajyan rajyan commented May 5, 2024

Reverts #1791

ondrejmirtes and others added 30 commits March 18, 2024 17:11
ondrejmirtes and others added 26 commits April 23, 2024 10:11
Co-authored-by: Ondrej Mirtes <ondrej@mirtes.cz>
@rajyan
Copy link
Contributor Author

rajyan commented May 5, 2024

As explained in

phpstan/phpstan#8393

we need to handle isOffsetAccessible differently in isset.
I'm first reverting this, because offset access on 'Closure' raises an error.
#1791 (comment)

We have to handle isOffsetAccsible->maybe of 'accessibleType|false' and 'accessibleType|closure' differently.

@rajyan rajyan force-pushed the revert-1791-fix-bug-8068 branch from 07b02e3 to c84a072 Compare May 5, 2024 01:39
@rajyan rajyan closed this May 5, 2024
@rajyan rajyan deleted the revert-1791-fix-bug-8068 branch May 5, 2024 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet