Skip to content

Commit d781ac9

Browse files
Merge pull request #20 from async-interop/AndrewCarterUK-php5-patch
Removed scalar type hints
2 parents 6113525 + 882723d commit d781ac9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/EventLoopDriver.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function defer(callable $callback);
3535
*
3636
* @return string An identifier that can be used to cancel, enable or disable the event.
3737
*/
38-
public function delay(callable $callback, float $time);
38+
public function delay(callable $callback, $time);
3939

4040
/**
4141
* Repeatedly execute a callback. The interval between executions is approximate and accuracy is not guaranteed.
@@ -45,7 +45,7 @@ public function delay(callable $callback, float $time);
4545
*
4646
* @return string An identifier that can be used to cancel, enable or disable the event.
4747
*/
48-
public function repeat(callable $callback, float $interval);
48+
public function repeat(callable $callback, $interval);
4949

5050
/**
5151
* Execute a callback when a stream resource becomes readable.
@@ -75,7 +75,7 @@ public function onWritable($stream, callable $callback);
7575
*
7676
* @return string An identifier that can be used to cancel, enable or disable the event.
7777
*/
78-
public function onSignal(int $signo, callable $callback);
78+
public function onSignal($signo, callable $callback);
7979

8080
/**
8181
* Execute a callback when an error occurs.
@@ -93,7 +93,7 @@ public function onError(callable $callback);
9393
*
9494
* @return void
9595
*/
96-
public function enable(string $eventIdentifier);
96+
public function enable($eventIdentifier);
9797

9898
/**
9999
* Disable an event.
@@ -102,7 +102,7 @@ public function enable(string $eventIdentifier);
102102
*
103103
* @return void
104104
*/
105-
public function disable(string $eventIdentifier);
105+
public function disable($eventIdentifier);
106106

107107
/**
108108
* Cancel an event.
@@ -111,7 +111,7 @@ public function disable(string $eventIdentifier);
111111
*
112112
* @return void
113113
*/
114-
public function cancel(string $eventIdentifier);
114+
public function cancel($eventIdentifier);
115115

116116
/**
117117
* Reference an event.
@@ -122,7 +122,7 @@ public function cancel(string $eventIdentifier);
122122
*
123123
* @return void
124124
*/
125-
public function reference(string $eventIdentifier);
125+
public function reference($eventIdentifier);
126126

127127
/**
128128
* Unreference an event.
@@ -134,5 +134,5 @@ public function reference(string $eventIdentifier);
134134
*
135135
* @return void
136136
*/
137-
public function unreference(string $eventIdentifier);
137+
public function unreference($eventIdentifier);
138138
}

0 commit comments

Comments
 (0)