From 46173b180f68c4819cd815f39f5d08878cd8995d Mon Sep 17 00:00:00 2001 From: NeonXP Date: Fri, 6 Sep 2013 08:23:58 +0400 Subject: ~ Fix PHP 5.3 compatibility --- src/NXP/Classes/Lexer.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/NXP') 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] ); -- cgit v1.2.3