Skip to content

Commit

Permalink
Fix deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredup authored and smnandre committed Nov 7, 2024
1 parent ba6775b commit e449aee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Icons/tests/Unit/Twig/Node/UXIconFunctionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function testCompileRendersIconWithConstantNameAndAttributes(): void

$arguments = new Node([$iconName, $attributes]);

$node = new UXIconFunction('ux_icon', $arguments, 1);
$node = new UXIconFunction(new TwigFunction('ux_icon', fn () => null), $arguments, 1);
$node->compile($compiler);

$this->assertSame('"<svg class=\"icon-class\" aria-hidden=\"true\"><svg>icon</svg></svg>"', $compiler->getSource());
Expand Down

0 comments on commit e449aee

Please sign in to comment.