La classe DateMalformedStringException

(PHP 8 >= 8.3.0)

Introduction

Lancée lorsqu'une chaîne de Date/Heure invalide est détectée.

Cela peut être une valeur passée à DateTimeImmutable::__construct(), DateTimeImmutable::modify(), DateTime::__construct(), ou DateTime::modify().

Synopsis de la 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