From 1f264d949e7ba8bba09a76af26ad03cc3f494197 Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Fri, 12 May 2017 10:12:44 -0500 Subject: [PATCH] Revert "Use byte-stream package" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit ffde7791d71fb7617a8a16c38d105ba0a866a2ec. Oops… wrong branch. --- composer.json | 1 - lib/Internal/FileTask.php | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index dcfc58b..332aed6 100644 --- a/composer.json +++ b/composer.json @@ -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" diff --git a/lib/Internal/FileTask.php b/lib/Internal/FileTask.php index bbd7431..bb4c6fd 100644 --- a/lib/Internal/FileTask.php +++ b/lib/Internal/FileTask.php @@ -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");