We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 674cb96 + 76fce40 commit db9089dCopy full SHA for db9089d
src/Files/File.php
@@ -1981,19 +1981,7 @@ public function isReference($stackPtr)
1981
) {
1982
$params = $this->getMethodParameters($this->tokens[$lastBracket]['parenthesis_owner']);
1983
foreach ($params as $param) {
1984
- $varToken = $tokenAfter;
1985
- if ($param['variable_length'] === true) {
1986
- $varToken = $this->findNext(
1987
- (Util\Tokens::$emptyTokens + [T_ELLIPSIS]),
1988
- ($stackPtr + 1),
1989
- null,
1990
- true
1991
- );
1992
- }
1993
-
1994
- if ($param['token'] === $varToken
1995
- && $param['pass_by_reference'] === true
1996
- ) {
+ if ($param['reference_token'] === $stackPtr) {
1997
// Function parameter declared to be passed by reference.
1998
return true;
1999
}
0 commit comments