We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
finfo_close
1 parent 5d8baed commit 15f6b48Copy full SHA for 15f6b48
1 file changed
system/Files/File.php
@@ -135,7 +135,10 @@ public function getMimeType(): string
135
136
$finfo = finfo_open(FILEINFO_MIME_TYPE);
137
$mimeType = finfo_file($finfo, $this->getRealPath() ?: $this->__toString());
138
- finfo_close($finfo);
+
139
+ if(PHP_VERSION_ID < 80500){
140
+ finfo_close($finfo);
141
+ }
142
143
return $mimeType;
144
}
0 commit comments