Skip to content

Commit

Permalink
feat: allow \Kirby\Filesystem\Asset for uri method
Browse files Browse the repository at this point in the history
  • Loading branch information
tobimori authored Jan 8, 2023
1 parent 2a78399 commit 6194ffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BlurryPlaceholder.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static function image(\Kirby\Filesystem\Asset|\Kirby\Cms\File $file, arra
/**
* Returns the blurry image placeholder as data URI scheme
*/
public static function uri(\Kirby\Cms\File $file, array $options = []): string
public static function uri(\Kirby\Filesystem\Asset|\Kirby\Cms\File $file, array $options = []): string
{
$svg = static::image($file, $options);
return 'data:image/svg+xml;charset=utf-8,' . static::encodeSvg($svg);
Expand Down

0 comments on commit 6194ffe

Please sign in to comment.