Skip to content

Conversation

@b1rdex
Copy link
Contributor

@b1rdex b1rdex commented Oct 28, 2020

Closes phpstan/phpstan#3836

I'm not sure whether it's a correct way or not...

Closes phpstan/phpstan#3836 I'm not sure whether it's a correct way or not...
@ondrejmirtes
Copy link
Member

Nope, this is the wrong solution. The right solution is to modify ObjectType and have hasOffsetValueType return at least maybe: if it's representing an interface or a non-final class.

@ondrejmirtes
Copy link
Member

Best way is to modify ObjectType::isExtraOffsetAccessibleClass().

@ondrejmirtes
Copy link
Member

Done: b55656f

Thanks for the test :)

@b1rdex b1rdex deleted the bug-3836 branch October 29, 2020 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants