diff --git a/src/Util/Images.php b/src/Util/Images.php index c36ce26899..4fa2eda04a 100644 --- a/src/Util/Images.php +++ b/src/Util/Images.php @@ -247,7 +247,7 @@ class Images $data['size'] = $filesize; } - return $data ?? []; + return is_array($data) ? $data : []; } /**