diff --git a/doc/component/Lexer.markdown b/doc/component/Lexer.markdown index 06e4192e..0f10afa2 100644 --- a/doc/component/Lexer.markdown +++ b/doc/component/Lexer.markdown @@ -100,7 +100,7 @@ class FileLexer extends PhpParser\Lexer { // we could use either $startAttributes or $endAttributes here, because the fileName is always the same // (regardless of whether it is the start or end token). We choose $endAttributes, because it is slightly // more efficient (as the parser has to keep a stack for the $startAttributes). - $endAttributes['fileName'] = $fileName; + $endAttributes['fileName'] = $this->fileName; return $tokenId; } @@ -111,4 +111,4 @@ handleHaltCompiler ------------------ The method is invoked whenever a `T_HALT_COMPILER` token is encountered. It has to return the remaining string after the -construct (not including `();`). \ No newline at end of file +construct (not including `();`).