diff --git a/src/File/MimeType.php b/src/File/MimeType.php index 68e7dd8e3..b479e8015 100644 --- a/src/File/MimeType.php +++ b/src/File/MimeType.php @@ -385,7 +385,7 @@ public function isValid($value, $file = null) $this->type = null; if (! empty($this->finfo)) { $this->type = finfo_file($this->finfo, $file); - finfo_close($this->finfo); + unset($this->finfo); } }