File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,11 @@ final class ExtEventLoop implements LoopInterface
36
36
private $ signals ;
37
37
private $ signalEvents = array ();
38
38
39
- public function __construct (EventBaseConfig $ config = null )
39
+ public function __construct ()
40
40
{
41
+ $ config = new EventBaseConfig ();
42
+ $ config ->requireFeatures (EventBaseConfig::FEATURE_FDS );
43
+
41
44
$ this ->eventBase = new EventBase ($ config );
42
45
$ this ->futureTickQueue = new FutureTickQueue ();
43
46
$ this ->timerEvents = new SplObjectStorage ();
Original file line number Diff line number Diff line change @@ -16,13 +16,7 @@ public function createLoop($readStreamCompatible = false)
16
16
$ this ->markTestSkipped ('ext-event tests skipped because ext-event is not installed. ' );
17
17
}
18
18
19
- $ cfg = null ;
20
- if ($ readStreamCompatible ) {
21
- $ cfg = new \EventConfig ();
22
- $ cfg ->requireFeatures (\EventConfig::FEATURE_FDS );
23
- }
24
-
25
- return new ExtEventLoop ($ cfg );
19
+ return new ExtEventLoop ();
26
20
}
27
21
28
22
public function createStream ()
You can’t perform that action at this time.
0 commit comments