Skip to content

Commit c05b162

Browse files
committed
fix use token as array on FollowedByCommaAnalyzer
1 parent 767b4d5 commit c05b162

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules/DowngradePhp73/Tokenizer/FollowedByCommaAnalyzer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ public function isFollowed(File $file, Node $node): bool
1919
$currentToken = $oldTokens[$nextTokenPosition];
2020

2121
// only space
22-
if (is_array($currentToken) || StringUtils::isMatch($currentToken, '#\s+#')) {
22+
if (StringUtils::isMatch((string) $currentToken, '#\s+#')) {
2323
++$nextTokenPosition;
2424
continue;
2525
}
2626

2727
// without comma
28-
if (in_array($currentToken, ['(', ')', ';'], true)) {
28+
if (in_array((string) $currentToken, ['(', ')', ';'], true)) {
2929
return false;
3030
}
3131

0 commit comments

Comments
 (0)