Skip to content

Commit

Permalink
removed PHP 5.3 keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jun 12, 2010
1 parent cc37d83 commit dc6806f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Twig/SimpleTokenParser.php
Expand Up @@ -21,7 +21,7 @@ public function parse(Twig_Token $token)
{
$grammar = $this->getGrammar();
if (!is_object($grammar)) {
$grammar = static::parseGrammar($grammar);
$grammar = self::parseGrammar($grammar);
}

$grammar->setParser($this->parser);
Expand Down Expand Up @@ -108,7 +108,7 @@ static public function parseGrammar($str, $main = true)
$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]);

Expand Down

0 comments on commit dc6806f

Please sign in to comment.