Skip to content

Commit c871fa8

Browse files
authored
🩹 Fix missing array type for passing attachments (#29)
1 parent 257b533 commit c871fa8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/SageSvg.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function __construct(protected Filesystem $files)
2828
/**
2929
* Render the SVG as HTML
3030
*/
31-
public function render(string $image, string|array $class = '', array $attrs = [], array $options = []): HtmlString
31+
public function render(string|array $image, string|array $class = '', array $attrs = [], array $options = []): HtmlString
3232
{
3333
$options = collect([
3434
'idPrefix' => null,

src/helpers.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Render the specified SVG image if it exists.
1212
*/
1313
if (! function_exists('get_svg')) {
14-
function get_svg(string $image, string|array $class = '', array $attrs = [], array $options = []): HtmlString
14+
function get_svg(string|array $image, string|array $class = '', array $attrs = [], array $options = []): HtmlString
1515
{
1616
return app(SageSvg::class)->render($image, $class, $attrs, $options);
1717
}

0 commit comments

Comments
 (0)