UnhandledMatchError

(PHP 8)

Introduction

Une UnhandledMatchError est lancée lorsque le sujet transmis à une expression match n'est traité par aucun bras de cette même expression.

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