Skip to content

Commit

Permalink
Fix tokensCount var
Browse files Browse the repository at this point in the history
  • Loading branch information
marekskopal committed Apr 6, 2024
1 parent 0da0128 commit 242f3ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scanner/ClassScanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function findClasses(): array

switch ($tokenName) {
case 'T_NAMESPACE':
for ($j = $i + 1; $j < count($tokens); $j++) {
for ($j = $i + 1; $j < $tokensCount; $j++) {
if ($tokens[$j]->getTokenName() === 'T_NAME_QUALIFIED') {
$namespace = $tokens[$j]->text;
break;
Expand Down

0 comments on commit 242f3ca

Please sign in to comment.