Skip to content

Commit d072fa7

Browse files
committed
Stop using scope_condition in findVariableScopeExceptArrowFunctions
1 parent b09b463 commit d072fa7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

VariableAnalysis/Lib/Helpers.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,7 @@ public static function findVariableScopeExceptArrowFunctions(File $phpcsFile, $s
380380
if (! is_int($functionPtr)) {
381381
throw new \Exception("Function index not found for function argument index {$stackPtr}");
382382
}
383-
$functionToken = $tokens[$functionPtr];
384-
return $functionToken['scope_condition'];
383+
return $functionPtr;
385384
}
386385

387386
self::debug('Cannot find function scope for variable at', $stackPtr);

0 commit comments

Comments
 (0)