UnhandledMatchError

(PHP 8)

Introdução

Um UnhandledMatchError é lançado quando o sujeito passado para uma expressão match não é tratado por nenhum braço da expressão match.

Resumo da classe

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