diff options
Diffstat (limited to 'src/NXP/Classes/Lexer.php')
-rw-r--r-- | src/NXP/Classes/Lexer.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/NXP/Classes/Lexer.php b/src/NXP/Classes/Lexer.php index 3729e48..b66ea87 100644 --- a/src/NXP/Classes/Lexer.php +++ b/src/NXP/Classes/Lexer.php @@ -44,9 +44,10 @@ class Lexer { $matches = array(); preg_match_all($this->tokenFactory->getTokenParserRegex(), $input, $matches); + $tokenFactory = $this->tokenFactory; $tokensStream = array_map( - function ($token) use ($this) { - return $this->tokenFactory->createToken($token); + function ($token) use ($tokenFactory) { + return $tokenFactory->createToken($token); }, $matches[0] ); |