From c3d4f3f03a26ac0303b6162827580875eb2e65b0 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Sun, 7 May 2023 23:37:57 +0200 Subject: [PATCH] Fix type issues in PHPDoc comments --- src/enums/MDTagRelationType.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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"), }; }