mirror of
https://github.com/danog/file.git
synced 2024-11-30 04:19:39 +01:00
Revert "Use byte-stream package"
This reverts commit ffde7791d7
.
Oops… wrong branch.
This commit is contained in:
parent
ffde7791d7
commit
1f264d949e
@ -30,7 +30,6 @@
|
||||
},
|
||||
"minimum-stability": "dev",
|
||||
"require-dev": {
|
||||
"amphp/byte-stream": "dev-master as 0.1",
|
||||
"amphp/parallel": "dev-master as 0.1",
|
||||
"phpunit/phpunit": "^5.0",
|
||||
"friendsofphp/php-cs-fixer": "~1.9"
|
||||
|
@ -105,7 +105,7 @@ class FileTask extends BlockingDriver implements Task {
|
||||
case "fread":
|
||||
case "fwrite":
|
||||
case "fseek":
|
||||
return [$file, \substr($this->operation, 1)](...$this->args);
|
||||
return ([$file, \substr($this->operation, 1)])(...$this->args);
|
||||
|
||||
case "fclose":
|
||||
$file->close();
|
||||
@ -140,7 +140,7 @@ class FileTask extends BlockingDriver implements Task {
|
||||
case "ctime":
|
||||
case "get":
|
||||
case "put":
|
||||
return [$this, $this->operation](...$this->args);
|
||||
return ([$this, $this->operation])(...$this->args);
|
||||
|
||||
default:
|
||||
throw new \Error("Invalid operation");
|
||||
|
Loading…
Reference in New Issue
Block a user