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
This templated scenario seems to trigger an error for two different reasons:
in the example the class is known, it being class-string<DateTimeImmutable>
is_a() returns false if either of the first two class-string arguments are unknown, thus the return statement will never be reached: https://3v4l.org/Pd7BJ
Depends on what you mean by that, I suppose. class-string<Exception> and just class-string do result in different behavior in some places.
However in this case the return type is inferred to be class-string<> (https://getpsalm.org/r/ecaf471209), which is certainly not something I'd expect to see.
This templated scenario seems to trigger an error for two different reasons:
in the example the class is known, it being
class-string<DateTimeImmutable>
is_a()
returns false if either of the first twoclass-string
arguments are unknown, thus the return statement will never be reached: https://3v4l.org/Pd7BJhttps://getpsalm.org/r/07abe707ba
using e384fb0
The text was updated successfully, but these errors were encountered: