DateRangeError クラス

(PHP 8 >= 8.3.0)

はじめに

32ビットプラットフォーム上で、 日付オブジェクトが符号付き32ビットの範囲外の日付を表していた場合にスローされます。 このエラーをスローするのは、 DateTime::getTimestamp(), DateTimeImmutable::getTimestamp(), date_timestamp_get() です。

クラス概要

classDateRangeErrorextendsDateError {
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