From d3a3be6a2c15c10810a992aa357fb416c7a3726f Mon Sep 17 00:00:00 2001 From: Thomas Cantonnet Date: Tue, 18 Jul 2017 15:00:13 +0200 Subject: [PATCH] Fix BC break introduced by 3fc1e66 --- src/File/MimeType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }