Skip to content

Commit 11a4daf

Browse files
committed
fix(tests): do not use named arguments
Remove named arguments to ensure compatibility with PHP 7.4
1 parent d8c2b25 commit 11a4daf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/HeroiconTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function can_render_heroicon_using_solid_variant()
5151
/** @test */
5252
public function can_add_attributes_to_svg()
5353
{
54-
$render = $this->render(variant: 'outline', icon: 'menu', attrs: ['class' => 'w-6 h-6', 'title="Main menu"']);
54+
$render = $this->render('outline', 'menu', ['class' => 'w-6 h-6', 'title="Main menu"']);
5555

5656
assertStringContainsString('class="w-6 h-6"', $render);
5757
assertStringContainsString('title="Main menu"', $render);
@@ -60,7 +60,7 @@ public function can_add_attributes_to_svg()
6060
/** @test */
6161
public function can_add_dynamically_binded_attributes_to_svg()
6262
{
63-
$render = $this->render(variant: 'outline', icon: 'menu', attrs: ['x-bind:class' => "true ? 'w-6 h-6' : 'w-5 h-5'"]);
63+
$render = $this->render('outline', 'menu', ['x-bind:class' => "true ? 'w-6 h-6' : 'w-5 h-5'"]);
6464

6565
assertStringContainsString('x-bind:class="true ? \'w-6 h-6\' : \'w-5 h-5\'"', $render);
6666
}

0 commit comments

Comments
 (0)