Skip to content

Commit f678747

Browse files
committed
Remove null return type of findVariableScopeExceptArrowFunctions
1 parent 490606d commit f678747

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

VariableAnalysis/Lib/Helpers.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ public static function getVariablesInsideCompact(File $phpcsFile, $stackPtr, $ar
538538
* @param File $phpcsFile
539539
* @param int $stackPtr
540540
*
541-
* @return ?int
541+
* @return int
542542
*/
543543
public static function findVariableScopeExceptArrowFunctions(File $phpcsFile, $stackPtr)
544544
{
@@ -567,7 +567,7 @@ public static function findVariableScopeExceptArrowFunctions(File $phpcsFile, $s
567567
return $functionPtr;
568568
}
569569

570-
self::debug('Cannot find function scope for variable at', $stackPtr);
570+
self::debug('Cannot find function scope for variable (it may be in an arrow function) at', $stackPtr);
571571
return $startOfTokenScope;
572572
}
573573

0 commit comments

Comments
 (0)