Remove deprecate feature

This commit is contained in:
Fabien Potencier
2024-07-28 10:58:14 +02:00
parent 2889655bd4
commit b50ff6173e
-7
View File
@@ -25,13 +25,6 @@ class FilterExpression extends CallExpression
public function compile(Compiler $compiler): void
{
$name = $this->getNode('filter')->getAttribute('value');
if ('raw' === $name) {
trigger_deprecation('twig/twig', '3.11', 'Creating the "raw" filter via "FilterExpression" is deprecated; use "RawFilter" instead.');
$compiler->subcompile($this->getNode('node'));
return;
}
$filter = $compiler->getEnvironment()->getFilter($name);
$this->setAttribute('name', $name);