We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e5e1727 + 05596d7 commit e6811e9Copy full SHA for e6811e9
src/Barryvdh/Reflection/DocBlock/Tag/ParamTag.php
@@ -53,6 +53,14 @@ public function setContent($content)
53
PREG_SPLIT_DELIM_CAPTURE
54
);
55
56
+ // detect generic type
57
+ if (isset($parts[0]) && isset($parts[2]) && strpos($parts[0], '<') !== false && strpos($parts[2], '>') !== false) {
58
+ $parts[0] .= ' ' . $parts[2];
59
+ unset($parts[1]);
60
+ unset($parts[2]);
61
+ $parts = array_values($parts);
62
+ }
63
+
64
// if the first item that is encountered is not a variable; it is a type
65
if (isset($parts[0])
66
&& (strlen($parts[0]) > 0)
0 commit comments