From e8ccebaf17c02bd4dc028d93c48ced1a50f71486 Mon Sep 17 00:00:00 2001 From: Vasil Rangelov Date: Sun, 12 Aug 2012 20:21:19 +0300 Subject: [PATCH 1/2] Fix for phpDocumentor2#562 Possible fix for phpDocumentor/phpDocumentor2#562. --- src/phpDocumentor/Reflection/DocBlock/Tag/ParamTag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phpDocumentor/Reflection/DocBlock/Tag/ParamTag.php b/src/phpDocumentor/Reflection/DocBlock/Tag/ParamTag.php index 8214534..eba1b97 100644 --- a/src/phpDocumentor/Reflection/DocBlock/Tag/ParamTag.php +++ b/src/phpDocumentor/Reflection/DocBlock/Tag/ParamTag.php @@ -69,7 +69,7 @@ class ParamTag extends Tag : trim($type); } - return $types; + return array_unique($types, SORT_NUMERIC); } /** From 9e0a3921b32be9f0b6a220aa9f80df228b53bf55 Mon Sep 17 00:00:00 2001 From: Vasil Rangelov Date: Sun, 12 Aug 2012 23:53:31 +0300 Subject: [PATCH 2/2] Ensured key consistency. --- src/phpDocumentor/Reflection/DocBlock/Tag/ParamTag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phpDocumentor/Reflection/DocBlock/Tag/ParamTag.php b/src/phpDocumentor/Reflection/DocBlock/Tag/ParamTag.php index eba1b97..dc61e8b 100644 --- a/src/phpDocumentor/Reflection/DocBlock/Tag/ParamTag.php +++ b/src/phpDocumentor/Reflection/DocBlock/Tag/ParamTag.php @@ -69,7 +69,7 @@ class ParamTag extends Tag : trim($type); } - return array_unique($types, SORT_NUMERIC); + return array_values(array_unique($types, SORT_REGULAR)); } /**