1 <?php declare(strict_types=1);
3 namespace PhpParser\Node\Expr;
5 use PhpParser\Node\Expr;
8 * Error node used during parsing with error recovery.
10 * An error node may be placed at a position where an expression is required, but an error occurred.
11 * Error nodes will not be present if the parser is run in throwOnError mode (the default).
13 class Error extends Expr
16 * Constructs an error node.
18 * @param array $attributes Additional attributes
20 public function __construct(array $attributes = []) {
21 parent::__construct($attributes);
24 public function getSubNodeNames() : array {
28 public function getType() : string {