From 5ce6a3ca43658bb643dc08dcf40ee6fbcc3d6709 Mon Sep 17 00:00:00 2001 From: NeonXP Date: Fri, 6 Sep 2013 08:21:31 +0400 Subject: ~ Fix PHP 5.3 compatibility --- src/NXP/Classes/Lexer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NXP/Classes/Lexer.php b/src/NXP/Classes/Lexer.php index 63a87b2..3729e48 100644 --- a/src/NXP/Classes/Lexer.php +++ b/src/NXP/Classes/Lexer.php @@ -45,7 +45,7 @@ class Lexer $matches = array(); preg_match_all($this->tokenFactory->getTokenParserRegex(), $input, $matches); $tokensStream = array_map( - function ($token) { + function ($token) use ($this) { return $this->tokenFactory->createToken($token); }, $matches[0] -- cgit v1.2.3