aboutsummaryrefslogtreecommitdiff
path: root/src/NXP/Classes/Lexer.php
diff options
context:
space:
mode:
authorNeonXP <frei@neonxp.info>2013-09-06 08:21:31 +0400
committerNeonXP <frei@neonxp.info>2013-09-06 08:21:31 +0400
commit5ce6a3ca43658bb643dc08dcf40ee6fbcc3d6709 (patch)
tree22ebc1f06bcf73b6f74a9bb7dfb776cc4591dcc3 /src/NXP/Classes/Lexer.php
parent9cef8dbc799343f6fc0fca926fbef4917b94f335 (diff)
~ Fix PHP 5.3 compatibility
Diffstat (limited to 'src/NXP/Classes/Lexer.php')
-rw-r--r--src/NXP/Classes/Lexer.php2
1 files changed, 1 insertions, 1 deletions
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]