Skip to content

Commit 5752caf

Browse files
committed
Fix coding issue.
1 parent 212b576 commit 5752caf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/CoreWebAssets.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -558,13 +558,13 @@ public function structJavaScript(): ?array
558558

559559
if (empty($this->jsTrailerAttributes))
560560
{
561-
$struct = [];
561+
$struct = null;
562562
}
563563
else
564564
{
565-
$struct[] = ['tag' => 'script',
566-
'attr' => $this->jsTrailerAttributes,
567-
'html' => null];
565+
$struct = ['tag' => 'script',
566+
'attr' => $this->jsTrailerAttributes,
567+
'html' => null];
568568
}
569569

570570
return $struct;

0 commit comments

Comments
 (0)