From dace2d822619250cc3caaf133088972ab4e7f7c5 Mon Sep 17 00:00:00 2001 From: Andrew Carter Date: Mon, 11 Apr 2016 11:19:52 +0100 Subject: [PATCH 1/2] Removed scalar type hints --- src/EventLoopDriver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EventLoopDriver.php b/src/EventLoopDriver.php index 013d846..53712b8 100644 --- a/src/EventLoopDriver.php +++ b/src/EventLoopDriver.php @@ -35,7 +35,7 @@ interface EventLoopDriver * * @return string An identifier that can be used to cancel, enable or disable the event. */ - public function delay(callable $callback, float $time); + public function delay(callable $callback, $time); /** * Repeatedly execute a callback. The interval between executions is approximate and accuracy is not guaranteed. @@ -45,7 +45,7 @@ interface EventLoopDriver * * @return string An identifier that can be used to cancel, enable or disable the event. */ - public function repeat(callable $callback, float $interval); + public function repeat(callable $callback, $interval); /** * Execute a callback when a stream resource becomes readable. From 882723d7e291c6b78dcf4b04d45c963f7f545613 Mon Sep 17 00:00:00 2001 From: Andrew Carter Date: Mon, 11 Apr 2016 11:22:54 +0100 Subject: [PATCH 2/2] Update EventLoopDriver.php --- src/EventLoopDriver.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/EventLoopDriver.php b/src/EventLoopDriver.php index 53712b8..c1fdf54 100644 --- a/src/EventLoopDriver.php +++ b/src/EventLoopDriver.php @@ -75,7 +75,7 @@ interface EventLoopDriver * * @return string An identifier that can be used to cancel, enable or disable the event. */ - public function onSignal(int $signo, callable $callback); + public function onSignal($signo, callable $callback); /** * Execute a callback when an error occurs. @@ -93,7 +93,7 @@ interface EventLoopDriver * * @return void */ - public function enable(string $eventIdentifier); + public function enable($eventIdentifier); /** * Disable an event. @@ -102,7 +102,7 @@ interface EventLoopDriver * * @return void */ - public function disable(string $eventIdentifier); + public function disable($eventIdentifier); /** * Cancel an event. @@ -111,7 +111,7 @@ interface EventLoopDriver * * @return void */ - public function cancel(string $eventIdentifier); + public function cancel($eventIdentifier); /** * Reference an event. @@ -122,7 +122,7 @@ interface EventLoopDriver * * @return void */ - public function reference(string $eventIdentifier); + public function reference($eventIdentifier); /** * Unreference an event. @@ -134,5 +134,5 @@ interface EventLoopDriver * * @return void */ - public function unreference(string $eventIdentifier); + public function unreference($eventIdentifier); }