ParseError

(PHP 7, PHP 8)

Einführung

ParseError wird geworfen, wenn bei der Analyse des PHP-Codes ein Fehler auftritt, z. B. wenn eval() aufgerufen wird.

Hinweis: Seit PHP 7.3.0 erweitert ParseErrorCompileError; vorher war es eine Erweiterung von Error.

Klassenbeschreibung

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