Skip to content

Commit

Permalink
🩹 Fix missing array type for passing attachments (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergiArias authored Aug 29, 2024
1 parent 257b533 commit c871fa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SageSvg.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c871fa8

Please sign in to comment.