From afab39461bf37b9139687e4b67a0a5363511a5be Mon Sep 17 00:00:00 2001 From: Johann Schopplich Date: Fri, 6 Jan 2023 13:50:47 +0100 Subject: [PATCH] Fix: Return actual ID for given UUID instance --- classes/BlurHash.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/classes/BlurHash.php b/classes/BlurHash.php index 38fccac..4a069be 100644 --- a/classes/BlurHash.php +++ b/classes/BlurHash.php @@ -242,9 +242,10 @@ private static function calcWidthHeight(int $target, float $ratio): array */ private static function getId(Asset|File $file): string { - if($file instanceof Asset) + if ($file instanceof Asset) { return $file->mediaHash(); + } - return $file->uuid() ?? $file->id(); + return $file->uuid()->id() ?? $file->id(); } }