Class PHPStan\Node\CatchTypeNode

final
extends NodeAbstract
implements VirtualNode

Virtual node emitted once for each type in a catch clause, whether or not the try block can throw it - unlike CatchWithUnthrownExceptionNode, which is emitted only for the dead ones. Rules analysing a trait need both outcomes to tell whether a catch is dead in every class using it.

Methods
Methods inherited from PhpParser\NodeAbstract
getLine(), getStartLine(), getEndLine(), getStartTokenPos(), getEndTokenPos(), getStartFilePos(), getEndFilePos(), getComments(), getDocComment(), setDocComment(), setAttribute(), hasAttribute(), getAttribute(), getAttributes(), setAttributes(), jsonSerialize()
Properties inherited from PhpParser\NodeAbstract
$attributes