You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E.g. InvalidArrayAccess: Cannot access array value on non-array variable $preferences of type array<mixed, mixed>|string|float|int|bool|null could be PossiblyInvalidArrayAccess because at least one type is array.
This makes InvalidArrayAccess less likely to be a false positive.
InvalidReturnType could have something similar (T1 vs T1|T2 could have one message, T1 vs string could have a different message)
E.g. for InvalidReturnType: The declared return type 'string' for a::method is incorrect, got 'string|false' could be BroaderInferredReturnType?
The text was updated successfully, but these errors were encountered:
InvalidReturnType could have something similar (T1 vs T1|T2 could have one message, T1 vs string could have a different message)
E.g. for InvalidReturnType: The declared return type 'string' for a::method is incorrect, got 'string|false' could be BroaderInferredReturnType?
Actually I like this idea, especially give we already have InvalidFalsableReturnStatement. There should be PossiblyInvalidReturnType and PossiblyInvalidReturnStatement issues
E.g.
InvalidArrayAccess: Cannot access array value on non-array variable $preferences of type array<mixed, mixed>|string|float|int|bool|null
could be PossiblyInvalidArrayAccess because at least one type is array.This makes InvalidArrayAccess less likely to be a false positive.
InvalidReturnType could have something similar (T1 vs T1|T2 could have one message, T1 vs string could have a different message)
InvalidReturnType: The declared return type 'string' for a::method is incorrect, got 'string|false'
could be BroaderInferredReturnType?The text was updated successfully, but these errors were encountered: