Skip to content

Commit

Permalink
Merge pull request #618 from aistis-/patch-1
Browse files Browse the repository at this point in the history
context parameter cannot be an empty string
  • Loading branch information
lsmith77 committed Oct 27, 2015
2 parents a3834d6 + 40221e5 commit 2ffded1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Binary/Loader/StreamLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct($wrapperPrefix, $context = null)
throw new \InvalidArgumentException('The given context is no valid resource.');
}

$this->context = $context;
$this->context = empty($context) ? null : $context;
}

/**
Expand Down

0 comments on commit 2ffded1

Please sign in to comment.