From 089684ea00697241026ed21b9b2eff6608fb3051 Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Wed, 21 Jun 2017 10:18:14 +0200 Subject: [PATCH] Require parallel 0.1.4 and fix code style --- composer.json | 2 +- lib/Internal/EioPoll.php | 2 +- lib/Internal/UvPoll.php | 2 +- lib/StatCache.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 47f4a07..d97fe71 100644 --- a/composer.json +++ b/composer.json @@ -30,7 +30,7 @@ "require": { "amphp/amp": "^2", "amphp/byte-stream": "^1", - "amphp/parallel": "^0.1" + "amphp/parallel": "^0.1.4" }, "require-dev": { "amphp/phpunit-util": "^1", diff --git a/lib/Internal/EioPoll.php b/lib/Internal/EioPoll.php index f68d934..421f4a4 100644 --- a/lib/Internal/EioPoll.php +++ b/lib/Internal/EioPoll.php @@ -37,7 +37,7 @@ class EioPoll { Loop::disable($this->watcher); - Loop::setState(self::class, new class ($this->watcher) { + Loop::setState(self::class, new class($this->watcher) { private $watcher; private $driver; diff --git a/lib/Internal/UvPoll.php b/lib/Internal/UvPoll.php index 54d55c2..b355a2b 100644 --- a/lib/Internal/UvPoll.php +++ b/lib/Internal/UvPoll.php @@ -27,7 +27,7 @@ class UvPoll { Loop::disable($this->watcher); - Loop::setState(self::class, new class ($this->watcher) { + Loop::setState(self::class, new class($this->watcher) { private $watcher; private $driver; diff --git a/lib/StatCache.php b/lib/StatCache.php index 335a53d..3c55b5a 100644 --- a/lib/StatCache.php +++ b/lib/StatCache.php @@ -29,7 +29,7 @@ class StatCache { Loop::unreference($watcher); - Loop::setState(self::class, new class ($watcher) { + Loop::setState(self::class, new class($watcher) { private $watcher; private $driver;