src/Tool/UnreachableCatch.php
private function isIncludeThrowableNode(Node $node): bool
    {
        foreach ($node->children['class']->children as $class) {
            if ($class->children['name'] === 'Throwable') {
                return true;
            }
        }

        return false;
    }
private function isIncludeThrowableNode(Node $node): bool
    {
        foreach ($node->children['class']->children as $class) {
            if ($class->children['name'] === 'Throwable') {
                return true;
            }
        }

        return false;
    }
private function isIncludeThrowableNode ( Node $ node ) : bool { foreach ( $ node -> children [ 'class' ] -> children as $ class ) { if ( $ class -> children [ 'name' ] === 'Throwable' ) { return true ; } } return false ; }
Check if the node catches `Throwable`

@param Node $node The node to check.
@return boolean Result.
Check if the node catches Throwable