mirror of
https://github.com/standardebooks/web.git
synced 2025-07-17 11:56:38 -04:00
More type fixes
This commit is contained in:
parent
a5a19f947f
commit
99b5fd66f2
17 changed files with 103 additions and 122 deletions
|
@ -23,7 +23,12 @@ enum ImageMimeType: string{
|
|||
return null;
|
||||
}
|
||||
|
||||
$mimeType = mime_content_type($path);
|
||||
try{
|
||||
$mimeType = mime_content_type($path);
|
||||
}
|
||||
catch(\Safe\Exceptions\FileinfoException){
|
||||
return null;
|
||||
}
|
||||
|
||||
$mimeType = match($mimeType){
|
||||
'image/x-ms-bmp', 'image/x-bmp' => 'image/bmp',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue