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

Commit

Permalink
Merge pull request #180 from ThomasCantonnet/finfo-bc-break
Browse files Browse the repository at this point in the history
Fix BC break introduced by 3fc1e66
  • Loading branch information
weierophinney committed Jul 19, 2017
2 parents 268a704 + d3a3be6 commit 1b7725e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/File/MimeType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 1b7725e

Please sign in to comment.