A classe DateMalformedStringException

(PHP 8 >= 8.3.0)

Introdução

Disparada quando uma string inválida de Data/Hora é detectada.

Pode ser um valor para DateTimeImmutable::__construct(), DateTimeImmutable::modify(), DateTime::__construct() ou DateTime::modify().

Resumo da classe

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