From: Fabien Potencier Date: Sat, 12 Jun 2010 12:09:15 +0000 (+0200) Subject: removed PHP 5.3 keyword X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=dc6806f4891c0213292c1009429cadba9770274a;p=web%2Fkonrad%2Ftwig.git removed PHP 5.3 keyword --- 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]);