Класс DateMalformedStringException

(PHP 8 >= 8.3.0)

Введение

Выбрасывается при обнаружении недопустимой строки даты/времени.

Строка даты/времени может передаваться в качестве значения аргумента в методы DateTimeImmutable::__construct(), DateTimeImmutable::modify(), DateTime::__construct() или DateTime::modify().

Обзор классов

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