Constructs a catch node.
Node\Name[] $types Types of exceptions to catch:
Expr\Variable|null $var Variable for exception:
Node\Stmt[] $stmts Statements:
array<string, mixed> $attributes Additional attributes:
public function __construct(array $types, ?Expr\Variable $var = null, array $stmts = [], array $attributes = []) { $this->attributes = $attributes; $this->types = $types; $this->var = $var; $this->stmts = $stmts; }