Skip to content

Commit fb5a382

Browse files
committed
Fixed IdentificatorHelper
1 parent 33a8bf8 commit fb5a382

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SlevomatCodingStandard/Helpers/IdentificatorHelper.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ public static function findEndPointer(File $phpcsFile, int $startPointer): ?int
152152
return self::getEndPointerAfterOperator($phpcsFile, $nextPointer);
153153
}
154154

155+
if ($tokens[$nextPointer]['code'] === T_OPEN_SQUARE_BRACKET) {
156+
return self::getEndPointerAfterVariablePart($phpcsFile, $startPointer);
157+
}
158+
155159
return $startPointer;
156160
}
157161

0 commit comments

Comments
 (0)