Continue upgrading Twig

This commit is contained in:
Michael Foster 2013-08-01 15:55:28 -04:00
parent 6b6f32949d
commit 157dcf9fb1
4 changed files with 34 additions and 31 deletions

View file

@ -43,12 +43,12 @@ class Twig_Extensions_TokenParser_Trans extends Twig_TokenParser
return new Twig_Extensions_Node_Trans($body, $plural, $count, $lineno, $this->getTag());
}
public function decideForFork($token)
public function decideForFork(Twig_Token $token)
{
return $token->test(array('plural', 'endtrans'));
}
public function decideForEnd($token)
public function decideForEnd(Twig_Token $token)
{
return $token->test('endtrans');
}
@ -77,4 +77,4 @@ class Twig_Extensions_TokenParser_Trans extends Twig_TokenParser
throw new Twig_Error_Syntax(sprintf('The text to be translated with "trans" can only contain references to simple variables'), $lineno);
}
}
}
}