Support https://wiki.php.net/rfc/throw_expression if merged #3849
Labels
enhancement
This improves the quality of Phan's analysis of a codebase
php8
Tracks changes to prepare for analyzing php 8 code
is_string($x) || throw new RuntimeException()
)$x = throw new Exception()
. Untilnever
/no-return
is supported,void
is probably the best option.-(throw new Exception())
Other examples from the RFC:
it would help to check if an expression unconditionally throws in UnionTypeVisitor->visitConditional() for the ternary operator and
??
The text was updated successfully, but these errors were encountered: