Disable superfluous match cases

This commit is contained in:
Joshua Ramon Enslin 2023-02-28 21:45:06 +01:00
parent ff263705b2
commit e97aac918e
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ enum MDAppointmentCancellationStatus implements MDValueEnumInterface, JsonSerial
return match($this) { return match($this) {
self::scheduled_done => "https://schema.org/EventScheduled", self::scheduled_done => "https://schema.org/EventScheduled",
self::cancelled => "https://schema.org/EventCancelled", self::cancelled => "https://schema.org/EventCancelled",
default => throw new MDpageParameterNotFromListException("Unknown JSON LD for attendance status"), // default => throw new MDpageParameterNotFromListException("Unknown JSON LD for attendance status"),
}; };
} }

View File

@ -107,7 +107,7 @@ enum MDAttendanceStatus implements MDValueEnumInterface, JsonSerializable {
return match($this) { return match($this) {
self::online => "https://schema.org/OnlineEventAttendanceMode", self::online => "https://schema.org/OnlineEventAttendanceMode",
self::offline => "https://schema.org/OfflineEventAttendanceMode", self::offline => "https://schema.org/OfflineEventAttendanceMode",
default => throw new MDpageParameterNotFromListException("Unknown JSON LD for attendance status"), // default => throw new MDpageParameterNotFromListException("Unknown JSON LD for attendance status"),
}; };
} }