File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -104,8 +104,8 @@ private function getAdditionFromParam(Param $tag): ?string
104
104
$ tagVariableName = $ tag ->getVariableName ();
105
105
$ tagVariableType = $ tag ->getType ();
106
106
107
- // Skip if the parameter variable name or type are missing.
108
- if (!$ tagVariableName || !$ tagVariableType ) {
107
+ // Skip if information we need is missing.
108
+ if (!$ tagDescription || ! $ tagVariableName || !$ tagVariableType ) {
109
109
return null ;
110
110
}
111
111
@@ -138,8 +138,8 @@ private function getAdditionFromReturn(Return_ $tag): ?string
138
138
$ tagDescription = $ tag ->getDescription ();
139
139
$ tagVariableType = $ tag ->getType ();
140
140
141
- // Skip if the return type is missing.
142
- if (!$ tagVariableType ) {
141
+ // Skip if information we need is missing.
142
+ if (!$ tagDescription || ! $ tagVariableType ) {
143
143
return null ;
144
144
}
145
145
You can’t perform that action at this time.
0 commit comments