diff --git a/src/enums/MDTagRelationType.php b/src/enums/MDTagRelationType.php index a323b93..3b1f332 100644 --- a/src/enums/MDTagRelationType.php +++ b/src/enums/MDTagRelationType.php @@ -40,7 +40,7 @@ enum MDTagRelationType implements MDValueEnumInterface, JsonSerializable { /** * Returns a value of this type based on an integer. * - * @param string $input Input to get a value from. + * @param integer $input Input to get a value from. * * @return MDTagRelationType */ @@ -88,7 +88,7 @@ enum MDTagRelationType implements MDValueEnumInterface, JsonSerializable { /** * Lists all available names. * - * @return array + * @return array */ public static function caseInts():array { @@ -110,12 +110,12 @@ enum MDTagRelationType implements MDValueEnumInterface, JsonSerializable { */ public function toInt():int { - return match(self) { + return match($this) { self::tag => 0, self::object_type => 1, self::material => 2, self::technique => 3, - default => throw new MDpageParameterNotFromListException("Unknown tag relation type"), + // default => throw new MDpageParameterNotFromListException("Unknown tag relation type"), }; }