Disable superfluous match cases

This commit is contained in:
jrenslin committed 2023-02-28 21:45:06 +01:00
1 parent ff263705b2
commit e97aac918e
2 files changed
+2 -2

No files matched your search

@@ -107,7 +107,7 @@ public function getJsonLd():string {
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"),
}; };
} }
+1 -1
View File
@@ -107,7 +107,7 @@ public function getJsonLd():string {
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"),
}; };
} }