mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-18 05:16:30 +00:00
Deprecate CallExpression::compileArguments
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# 3.10.4 (2024-XX-XX)
|
# 3.11.0 (2024-XX-XX)
|
||||||
|
|
||||||
* n/a
|
* Deprecate the second argument of `Twig\Node\Expression\CallExpression::compileArguments()`
|
||||||
|
|
||||||
# 3.10.3 (2024-05-16)
|
# 3.10.3 (2024-05-16)
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,13 @@ Extensions
|
|||||||
After:
|
After:
|
||||||
$twig->getRuntime(EscaperRuntime::class)->METHOD();
|
$twig->getRuntime(EscaperRuntime::class)->METHOD();
|
||||||
|
|
||||||
|
Nodes
|
||||||
|
-----
|
||||||
|
|
||||||
|
* The second argument of the
|
||||||
|
``Twig\Node\Expression\CallExpression::compileArguments()`` method is
|
||||||
|
deprecated.
|
||||||
|
|
||||||
Node Visitors
|
Node Visitors
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
|||||||
@@ -57,6 +57,10 @@ abstract class CallExpression extends AbstractExpression
|
|||||||
|
|
||||||
protected function compileArguments(Compiler $compiler, $isArray = false): void
|
protected function compileArguments(Compiler $compiler, $isArray = false): void
|
||||||
{
|
{
|
||||||
|
if (func_num_args() >= 2) {
|
||||||
|
trigger_deprecation('twig/twig', '3.11', 'Passing a second argument to "%s()" is deprecated.', __METHOD__);
|
||||||
|
}
|
||||||
|
|
||||||
$compiler->raw($isArray ? '[' : '(');
|
$compiler->raw($isArray ? '[' : '(');
|
||||||
|
|
||||||
$first = true;
|
$first = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user