Skip to content

Commit

Permalink
Bugfix. #667
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Apr 27, 2017
1 parent a3fcf13 commit 18f22de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class File
*/
public static function getStreamExt($stream)
{
if (is_dir(pathinfo($stream, PATHINFO_DIRNAME)) && is_readable($stream)) {
if (is_file(pathinfo($stream, PATHINFO_DIRNAME)) && is_readable($stream)) {
$stream = file_get_contents($stream);
}

Expand Down

0 comments on commit 18f22de

Please sign in to comment.