From dc6806f4891c0213292c1009429cadba9770274a Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 12 Jun 2010 14:09:15 +0200 Subject: [PATCH] removed PHP 5.3 keyword --- lib/Twig/SimpleTokenParser.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Twig/SimpleTokenParser.php b/lib/Twig/SimpleTokenParser.php index 0ae775b..1eb0cf1 100644 --- a/lib/Twig/SimpleTokenParser.php +++ b/lib/Twig/SimpleTokenParser.php @@ -21,7 +21,7 @@ abstract class Twig_SimpleTokenParser extends Twig_TokenParser { $grammar = $this->getGrammar(); if (!is_object($grammar)) { - $grammar = static::parseGrammar($grammar); + $grammar = self::parseGrammar($grammar); } $grammar->setParser($this->parser); @@ -108,7 +108,7 @@ abstract class Twig_SimpleTokenParser extends Twig_TokenParser $cursor += strlen($match[0]); } elseif (preg_match('/\[/A', $str, $match, null, $cursor)) { $cursor += strlen($match[0]); - $grammar->addGrammar(static::parseGrammar($str, false)); + $grammar->addGrammar(self::parseGrammar($str, false)); } elseif (true !== $main && preg_match('/\]/A', $str, $match, null, $cursor)) { $cursor += strlen($match[0]); -- 1.7.2.5