forked from leftypol/leftypol
Upgrade Twig library
This commit is contained in:
parent
22f3a95e0e
commit
0fe5528574
133 changed files with 5080 additions and 1386 deletions
|
@ -49,13 +49,13 @@ class Twig_TokenParser_Set extends Twig_TokenParser
|
|||
$stream->expect(Twig_Token::BLOCK_END_TYPE);
|
||||
|
||||
if (count($names) !== count($values)) {
|
||||
throw new Twig_Error_Syntax("When using set, you must have the same number of variables and assignements.", $lineno);
|
||||
throw new Twig_Error_Syntax("When using set, you must have the same number of variables and assignments.", $stream->getCurrent()->getLine(), $stream->getFilename());
|
||||
}
|
||||
} else {
|
||||
$capture = true;
|
||||
|
||||
if (count($names) > 1) {
|
||||
throw new Twig_Error_Syntax("When using set with a block, you cannot have a multi-target.", $lineno);
|
||||
throw new Twig_Error_Syntax("When using set with a block, you cannot have a multi-target.", $stream->getCurrent()->getLine(), $stream->getFilename());
|
||||
}
|
||||
|
||||
$stream->expect(Twig_Token::BLOCK_END_TYPE);
|
||||
|
@ -75,7 +75,7 @@ class Twig_TokenParser_Set extends Twig_TokenParser
|
|||
/**
|
||||
* Gets the tag name associated with this token parser.
|
||||
*
|
||||
* @param string The tag name
|
||||
* @return string The tag name
|
||||
*/
|
||||
public function getTag()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue