@@ -408,7 +408,7 @@ public function testUnknownTestWithoutSuggestions()
408408 public function testCompiledCodeForDynamicTest ()
409409 {
410410 $ env = new Environment (new ArrayLoader (['index ' => '{{ "a" is foo_foo_bar_bar }} ' ]), ['cache ' => false , 'autoescape ' => false ]);
411- $ env ->addExtension (new class () extends AbstractExtension {
411+ $ env ->addExtension (new class extends AbstractExtension {
412412 public function getTests ()
413413 {
414414 return [
@@ -423,7 +423,7 @@ public function getTests()
423423 public function testCompiledCodeForDynamicFunction ()
424424 {
425425 $ env = new Environment (new ArrayLoader (['index ' => '{{ foo_foo_bar_bar("a") }} ' ]), ['cache ' => false , 'autoescape ' => false ]);
426- $ env ->addExtension (new class () extends AbstractExtension {
426+ $ env ->addExtension (new class extends AbstractExtension {
427427 public function getFunctions ()
428428 {
429429 return [
@@ -438,7 +438,7 @@ public function getFunctions()
438438 public function testCompiledCodeForDynamicFilter ()
439439 {
440440 $ env = new Environment (new ArrayLoader (['index ' => '{{ "a"|foo_foo_bar_bar }} ' ]), ['cache ' => false , 'autoescape ' => false ]);
441- $ env ->addExtension (new class () extends AbstractExtension {
441+ $ env ->addExtension (new class extends AbstractExtension {
442442 public function getFilters ()
443443 {
444444 return [
@@ -569,10 +569,10 @@ public function testTwoWordTestPrecedence()
569569 public function testUnaryPrecedenceChange ()
570570 {
571571 $ env = new Environment (new ArrayLoader (), ['cache ' => false , 'autoescape ' => false ]);
572- $ env ->addExtension (new class () extends AbstractExtension {
572+ $ env ->addExtension (new class extends AbstractExtension {
573573 public function getOperators ()
574574 {
575- $ class = new class (new ConstantExpression ('foo ' , 1 ), 1 ) extends AbstractUnary {
575+ $ class = new class (new ConstantExpression ('foo ' , 1 ), 1 ) extends AbstractUnary {
576576 public function operator (Compiler $ compiler ): Compiler
577577 {
578578 return $ compiler ->raw ('! ' );
0 commit comments