File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed
Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -807,17 +807,20 @@ public function test_loop_variable_can_be_used_within_the_looped_tag(): void
807807 <<<'HTML'
808808 <x-some-component-with-loop :items="$this->items" />
809809 HTML,
810- )->data (items: [
811- new class {
812- public string $ title = 'Item 1 ' ;
813- public string $ uri = '/item-1 ' ;
814- },
815- new class {
816- public string $ title = 'Item 2 ' ;
817- public string $ uri = '/item-2 ' ;
818- },
819- ]
820- ));
810+ )
811+ ->data (items: [
812+ new class {
813+ public string $ title = 'Item 1 ' ;
814+
815+ public string $ uri = '/item-1 ' ;
816+ },
817+ new class {
818+ public string $ title = 'Item 2 ' ;
819+
820+ public string $ uri = '/item-2 ' ;
821+ },
822+ ]),
823+ );
821824
822825 $ this ->assertSnippetsMatch (<<<'HTML'
823826 <a href="/item-1">Item 1</a><a href="/item-2">Item 2</a>
You can’t perform that action at this time.
0 commit comments