@@ -145,7 +145,6 @@ public function process(File $phpcsFile, $docCommentOpenPointer): void
145
145
new IdentifierTypeNode ($ genericIdentifier ),
146
146
[$ this ->fixArrayNode ($ arrayTypeNode ->type )],
147
147
);
148
-
149
148
$ this ->fixAnnotation ($ phpcsFile , $ annotation , $ genericTypeNode );
150
149
151
150
continue ;
@@ -177,6 +176,8 @@ protected function fixAnnotation(File $phpcsFile, Annotation $annotation, string
177
176
$ parameterName = $ value ->parameterName ?? '' ;
178
177
$ variableName = $ value ->variableName ?? '' ;
179
178
$ description = $ value ->description ?? '' ;
179
+ $ propertyName = $ value ->propertyName ?? '' ;
180
+
180
181
/** @var string $methodName */
181
182
$ methodName = $ value ->methodName ?? '' ;
182
183
if ($ methodName ) {
@@ -188,7 +189,7 @@ protected function fixAnnotation(File $phpcsFile, Annotation $annotation, string
188
189
$ methodName .= '( ' . implode (', ' , $ list ) . ') ' ;
189
190
}
190
191
191
- $ fixedAnnotation = sprintf ('%s %s %s %s %s ' , $ fixedAnnotation , $ parameterName , $ variableName , $ description , $ methodName );
192
+ $ fixedAnnotation = sprintf ('%s %s %s %s %s %s ' , $ fixedAnnotation , $ parameterName , $ variableName , $ description , $ methodName, $ propertyName );
192
193
/** @var string $fixedAnnotation */
193
194
$ fixedAnnotation = preg_replace ('/\s+/ ' , ' ' , trim ($ fixedAnnotation ));
194
195
0 commit comments