Fix another invalid output value in MDMeasurementType

This commit is contained in:
Joshua Ramon Enslin 2023-10-19 17:20:38 +02:00
parent 06b2d13c6f
commit 1dedb86d5b
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -99,7 +99,6 @@ enum MDMeasurementType implements JsonSerializable {
public function getName():string {
return match($this) {
self::vg_bildkunst => "VG Bildkunst",
# default => throw new MDpageParameterNotFromListException("Unknown measurement type"),
default => throw new MDpageParameterNotFromListException("To be implemented"),
};
@ -123,7 +122,7 @@ enum MDMeasurementType implements JsonSerializable {
self::wall => 7,
self::number_of_pages => 8,
self::die_axis => 9,
default => throw new MDpageParameterNotFromListException("Unknown measurement type"),
# default => throw new MDpageParameterNotFromListException("Unknown measurement type"),
};
}