Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 1b7725e

Browse files
committed
Merge pull request #180 from ThomasCantonnet/finfo-bc-break
Fix BC break introduced by 3fc1e66
2 parents 268a704 + d3a3be6 commit 1b7725e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/File/MimeType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ public function isValid($value, $file = null)
385385
$this->type = null;
386386
if (! empty($this->finfo)) {
387387
$this->type = finfo_file($this->finfo, $file);
388-
finfo_close($this->finfo);
388+
unset($this->finfo);
389389
}
390390
}
391391

0 commit comments

Comments
 (0)