[core] image->mime is not-nullable

This commit is contained in:
Shish 2024-01-15 12:18:28 +00:00
parent 65ac7d8440
commit 6c6b09f762

View file

@ -433,11 +433,7 @@ class Image
if ($this->mime === MimeType::WEBP && $this->lossless) {
return MimeType::WEBP_LOSSLESS;
}
$m = $this->mime;
if (is_null($m)) {
$m = MimeMap::get_for_extension($this->ext)[0];
}
return strtolower($m);
return strtolower($this->mime);
}
/**