diff --git a/src/enums/MDCustomReportFormat.php b/src/enums/MDCustomReportFormat.php index ab4eb2e..4616b4c 100644 --- a/src/enums/MDCustomReportFormat.php +++ b/src/enums/MDCustomReportFormat.php @@ -21,7 +21,7 @@ enum MDCustomReportFormat implements JsonSerializable { * * @return MDCustomReportTarget */ - public static function fromString(string $input):MDObjectDamageType { + public static function fromString(string $input):MDCustomReportFormat { return match($input) { 'csv' => self::csv, diff --git a/src/enums/MDCustomReportTarget.php b/src/enums/MDCustomReportTarget.php index 820f8ec..d8417fa 100644 --- a/src/enums/MDCustomReportTarget.php +++ b/src/enums/MDCustomReportTarget.php @@ -21,12 +21,12 @@ enum MDCustomReportTarget implements MDValueEnumInterface, JsonSerializable { * * @return MDCustomReportTarget */ - public static function fromString(string $input):MDObjectDamageType { + public static function fromString(string $input):MDCustomReportTarget { return match($input) { 'object_single' => self::object_single, 'object_list' => self::object_list, - default => throw new MDpageParameterNotFromListException("Unknown custom report target"), + default => throw new MDpageParameterNotFromListException("Unknown custom report target: " . $input), }; }