diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-01 15:55:28 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-01 15:55:28 -0400 |
| commit | 157dcf9fb13f83d3d7ec8e2ab6cd566e92efea97 (patch) | |
| tree | e9a4728814ac548e777e12336f8dd46c77b08ca2 /inc/lib/Twig/Extensions/TokenParser | |
| parent | 6b6f32949df7be58c7a9125711aeab2c34cd1d54 (diff) | |
Continue upgrading Twig
Diffstat (limited to 'inc/lib/Twig/Extensions/TokenParser')
| -rw-r--r-- | inc/lib/Twig/Extensions/TokenParser/Trans.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/lib/Twig/Extensions/TokenParser/Trans.php b/inc/lib/Twig/Extensions/TokenParser/Trans.php index 5b2d93b6..4a0fad41 100644 --- a/inc/lib/Twig/Extensions/TokenParser/Trans.php +++ b/inc/lib/Twig/Extensions/TokenParser/Trans.php @@ -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); } } -} +}
\ No newline at end of file |
