Skip to content

Commit 43e0eba

Browse files
committed
fix: correctly pass a string to html tag by wrapping in array
1 parent bdfb84e commit 43e0eba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vite.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ function inlineViteAsset(string|array $files, string $type): void
4646
}
4747

4848
if ($type === 'stylesheet') {
49-
echo Html::tag(name: 'style', content: $content);
49+
echo Html::tag(name: 'style', content: [$content]);
5050
} elseif ($type === 'script') {
51-
echo Html::tag(name: 'script', content: $content);
51+
echo Html::tag(name: 'script', content: [$content]);
5252
}
5353
}
5454
}

0 commit comments

Comments
 (0)