fixup! Fix new loader

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2019-03-11 22:49:15 +01:00
commit 9d525ccb1e
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -54,10 +54,10 @@ class HashWrapper extends Wrapper {
* @throws \BadMethodCallException
*/
public static function wrap($source, $hash, $callback) {
$context = stream_context_create(array(
$context = array(
'hash' => $hash,
'callback' => $callback,
));
);
return self::wrapSource($source, $context);
}