UnhandledMatchError

(PHP 8)

はじめに

UnhandledMatchError は、 match 式がどの分岐でも処理できなかったことを検知した場合にスローされます。

クラス概要

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