Skip to content

Commit 7f8e2e2

Browse files
committed
Merge branch '4.1' into 4.2
* 4.1: bump required Twig version fix compatibility with Twig >= 2.6.1 [Form] SA fix fix compatibility with PHPUnit 4.8 remove return type hint for PHP 5 compatibility SCA: minor code tweaks Component CssSelector tests [DebugClassLoader] Readd findFile() method [Console] Fix composer.json suggest/provide Revert "bug #29597 [DI] fix reporting bindings on overriden services as unused (nicolas-grekas)" Fixed exception wording Fix SwiftMailerHandler to support Monolog's latest reset functionality
2 parents b40cdad + 31e8360 commit 7f8e2e2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

TokenParser/TransChoiceTokenParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function parse(Token $token)
7272
$body = $this->parser->subparse(array($this, 'decideTransChoiceFork'), true);
7373

7474
if (!$body instanceof TextNode && !$body instanceof AbstractExpression) {
75-
throw new SyntaxError('A message inside a transchoice tag must be a simple text.', $body->getTemplateLine(), $stream->getSourceContext()->getName());
75+
throw new SyntaxError('A message inside a transchoice tag must be a simple text.', $body->getTemplateLine(), $stream->getSourceContext());
7676
}
7777

7878
$stream->expect(Token::BLOCK_END_TYPE);

TokenParser/TransTokenParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function parse(Token $token)
6767
$stream->next();
6868
$locale = $this->parser->getExpressionParser()->parseExpression();
6969
} elseif (!$stream->test(Token::BLOCK_END_TYPE)) {
70-
throw new SyntaxError('Unexpected token. Twig was looking for the "with", "from", or "into" keyword.', $stream->getCurrent()->getLine(), $stream->getSourceContext()->getName());
70+
throw new SyntaxError('Unexpected token. Twig was looking for the "with", "from", or "into" keyword.', $stream->getCurrent()->getLine(), $stream->getSourceContext());
7171
}
7272
}
7373

@@ -76,7 +76,7 @@ public function parse(Token $token)
7676
$body = $this->parser->subparse(array($this, 'decideTransFork'), true);
7777

7878
if (!$body instanceof TextNode && !$body instanceof AbstractExpression) {
79-
throw new SyntaxError('A message inside a trans tag must be a simple text.', $body->getTemplateLine(), $stream->getSourceContext()->getName());
79+
throw new SyntaxError('A message inside a trans tag must be a simple text.', $body->getTemplateLine(), $stream->getSourceContext());
8080
}
8181

8282
$stream->expect(Token::BLOCK_END_TYPE);

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"require": {
1919
"php": "^7.1.3",
2020
"symfony/contracts": "^1.0.2",
21-
"twig/twig": "^1.36.1|^2.6.1"
21+
"twig/twig": "^1.37.1|^2.6.2"
2222
},
2323
"require-dev": {
2424
"symfony/asset": "~3.4|~4.0",

0 commit comments

Comments
 (0)