diff options
author | NeonXP <frei@neonxp.info> | 2013-09-06 08:23:58 +0400 |
---|---|---|
committer | NeonXP <frei@neonxp.info> | 2013-09-06 08:23:58 +0400 |
commit | 46173b180f68c4819cd815f39f5d08878cd8995d (patch) | |
tree | a4ed51e93d983a4f58fc48a8e77424c8fdfbe45d /src/NXP/Classes | |
parent | 5ce6a3ca43658bb643dc08dcf40ee6fbcc3d6709 (diff) |
~ Fix PHP 5.3 compatibility
Diffstat (limited to 'src/NXP/Classes')
-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] ); |