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

Make array access tolerant with isset #1789

Closed
wants to merge 59 commits into from

Conversation

ahmedash95
Copy link
Contributor

Closes phpstan/phpstan#8068.

Hey Ondrej,

As discussed in the bug. PHP is tolerant with isset.

The removed line Cannot access offset \'a\' on array{a: 1, b: 1}|(Closure(): void). from the other test is reasonable because closure key access in isset would always be reported.

appreciate your help on getting the fix for this one.

ondrejmirtes and others added 30 commits September 30, 2022 14:09
@ahmedash95 ahmedash95 closed this Oct 3, 2022
@ahmedash95 ahmedash95 deleted the fix-bug-8068 branch October 3, 2022 23:35
@ahmedash95 ahmedash95 restored the fix-bug-8068 branch October 3, 2022 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants