Skip to content

Commit ae257f4

Browse files
committed
Fix
1 parent 73d3bba commit ae257f4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Fixer/Annotation/RemovePropertyVariableNameDescriptionFixer.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ public function fix(SplFileInfo $fileInfo, Tokens $tokens): void
7575
// skip if not setter or getter
7676
$originalDocContent = $token->getContent();
7777

78+
preg_match_all(self::VAR_REGEX, $originalDocContent, $matches);
79+
80+
if (isset($matches[0]) && is_array($matches[0]) && count($matches[0]) !== 1) {
81+
continue;
82+
}
83+
7884
$hasChanged = false;
7985

8086
$docblockLines = explode("\n", $originalDocContent);

0 commit comments

Comments
 (0)