[core] image->mime is not-nullable
This commit is contained in:
parent
65ac7d8440
commit
6c6b09f762
1 changed files with 1 additions and 5 deletions
|
@ -433,11 +433,7 @@ class Image
|
||||||
if ($this->mime === MimeType::WEBP && $this->lossless) {
|
if ($this->mime === MimeType::WEBP && $this->lossless) {
|
||||||
return MimeType::WEBP_LOSSLESS;
|
return MimeType::WEBP_LOSSLESS;
|
||||||
}
|
}
|
||||||
$m = $this->mime;
|
return strtolower($this->mime);
|
||||||
if (is_null($m)) {
|
|
||||||
$m = MimeMap::get_for_extension($this->ext)[0];
|
|
||||||
}
|
|
||||||
return strtolower($m);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Reference in a new issue