mirror of
https://codeberg.org/icewind/streams.git
synced 2026-06-03 16:44:07 +02:00
fixup! Fix new loader
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
8a1095e46c
commit
9d525ccb1e
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue