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:46:04 +01:00
commit 8a1095e46c
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

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