function Error::__construct
Same name in this branch
- 11.1.x vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Error.php \PhpParser\Node\Expr\Error::__construct()
- 11.1.x vendor/twig/twig/src/Error/Error.php \Twig\Error\Error::__construct()
Creates an Exception signifying a parse error.
Parameters
string $message Error message:
array<string, mixed> $attributes Attributes of node/token where error occurred:
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Error.php, line 16
Class
Namespace
PhpParserCode
public function __construct(string $message, array $attributes = []) {
$this->rawMessage = $message;
$this->attributes = $attributes;
$this->updateMessage();
}