ParseError

(PHP 7, PHP 8)

Introduction

ParseError est émit quand une erreur se produit lors de l'analyse de code PHP, comme quand eval() est appelé.

Note: ParseError étend CompileError à partir de PHP 7.3.0. Auparavant, elle étendait Error.

Synopsis de la classe

classParseErrorextendsCompileError {
protectedstring$message = "";
privatestring$string = "";
protectedint$code;
protectedstring$file = "";
protectedint$line;
privatearray$trace = [];
private?Throwable$previous = null;
publicError::__construct(string$message = "", int$code = 0, ?Throwable$previous = null)
finalpublicError::getCode(): int
finalpublicError::getFile(): string
finalpublicError::getLine(): int
finalpublicError::getTrace(): array
}
To Top