Die Klasse DateMalformedStringException

(PHP 8 >= 8.3.0)

Einführung

Wird geworfen, wenn eine ungültige Datum/Uhrzeit-Zeichenkette erkannt wird.

Eine solche Zeichenkette kann als Wert an DateTimeImmutable::__construct(), DateTimeImmutable::modify(), DateTime::__construct() oder DateTime::modify() übergeben werden.

Klassenbeschreibung

classDateMalformedStringExceptionextendsDateException {
protectedstring$message = "";
privatestring$string = "";
protectedint$code;
protectedstring$file = "";
protectedint$line;
privatearray$trace = [];
private?Throwable$previous = null;
publicException::__construct(string$message = "", int$code = 0, ?Throwable$previous = null)
finalpublicException::getCode(): int
finalpublicException::getLine(): int
}
To Top