diff --git a/src/SageSvg.php b/src/SageSvg.php index 064c104..b822102 100644 --- a/src/SageSvg.php +++ b/src/SageSvg.php @@ -28,7 +28,7 @@ public function __construct(protected Filesystem $files) /** * Render the SVG as HTML */ - public function render(string $image, string|array $class = '', array $attrs = [], array $options = []): HtmlString + public function render(string|array $image, string|array $class = '', array $attrs = [], array $options = []): HtmlString { $options = collect([ 'idPrefix' => null, diff --git a/src/helpers.php b/src/helpers.php index 695870f..1d6e710 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -11,7 +11,7 @@ * Render the specified SVG image if it exists. */ if (! function_exists('get_svg')) { - function get_svg(string $image, string|array $class = '', array $attrs = [], array $options = []): HtmlString + function get_svg(string|array $image, string|array $class = '', array $attrs = [], array $options = []): HtmlString { return app(SageSvg::class)->render($image, $class, $attrs, $options); }