Fix unhandled match cases
This commit is contained in:
@@ -144,6 +144,8 @@ enum MDMeasurementType implements MDValueEnumInterface, JsonSerializable {
|
||||
'height_image_mount_outer' => self::height_image_mount_outer,
|
||||
'width_image_mount_inner' => self::width_image_mount_inner,
|
||||
'width_image_mount_outer' => self::width_image_mount_outer,
|
||||
'height_plate' => self::height_plate,
|
||||
'width_plate' => self::width_plate,
|
||||
default => throw new MDpageParameterNotFromListException("Unknown measurement type"),
|
||||
};
|
||||
|
||||
@@ -214,6 +216,8 @@ enum MDMeasurementType implements MDValueEnumInterface, JsonSerializable {
|
||||
53 => self::height_image_mount_outer,
|
||||
54 => self::width_image_mount_inner,
|
||||
55 => self::width_image_mount_outer,
|
||||
56 => self::height_plate,
|
||||
57 => self::width_plate,
|
||||
default => throw new MDpageParameterNotFromListException("Unknown measurement type"),
|
||||
};
|
||||
|
||||
@@ -304,6 +308,8 @@ enum MDMeasurementType implements MDValueEnumInterface, JsonSerializable {
|
||||
self::height_image_mount_outer => self::height,
|
||||
self::width_image_mount_inner => self::width,
|
||||
self::width_image_mount_outer => self::width,
|
||||
self::height_plate => self::height,
|
||||
self::width_plate => self::width,
|
||||
# default => throw new MDpageParameterNotFromListException("Unknown measurement type"),
|
||||
};
|
||||
|
||||
@@ -372,6 +378,8 @@ enum MDMeasurementType implements MDValueEnumInterface, JsonSerializable {
|
||||
self::height_image_mount_outer => 53,
|
||||
self::width_image_mount_inner => 54,
|
||||
self::width_image_mount_outer => 55,
|
||||
self::height_plate => 56,
|
||||
self::width_plate => 57,
|
||||
# default => throw new MDpageParameterNotFromListException("Unknown measurement type"),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user