Remove deprecation

This commit is contained in:
Fabien Potencier
2025-01-24 15:08:29 +01:00
parent 3decec3f5e
commit 3f621e40ae
-4
View File
@@ -31,10 +31,6 @@ class ForNode extends Node
$body = new IfNode(new Nodes([$ifexpr, $body]), null, $lineno);
}
if (null !== $ifexpr) {
trigger_deprecation('twig/twig', '3.19', \sprintf('Passing not-null to the "ifexpr" argument of the "%s" constructor is deprecated.', static::class));
}
$nodes = ['key_target' => $keyTarget, 'value_target' => $valueTarget, 'seq' => $seq, 'body' => $body];
if (null !== $else) {
$nodes['else'] = $else;