1
0
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:
Aaron Piotrowski 2017-05-12 10:12:44 -05:00
parent ffde7791d7
commit 1f264d949e
2 changed files with 2 additions and 3 deletions

View File

@ -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"

View File

@ -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");