Post #1159784
2026-04-13 13:02 UTC
@beberlei@phpc.social @bobmagicii@phpc.social @asgrim@phpc.social What if the next type is: “Any Exception, except for InvalidArgumentException”? I might be a control freak but to leave the interpretation to me is really important, and not just in PHPStan.
Replies (1)
-
@beberlei@phpc.social 2026-04-15 11:20
@OndrejMirtes@phpc.social @bobmagicii@phpc.social @asgrim@phpc.social I eed it for typehint based parameter injection, and my "80%" rule is that it just tests all classes for a converter from left to right until it finds one.