8000 Removed config as constructor argument · Undefined-Variables/event-loop@1b5e939 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1b5e939

Browse files
committed
Removed config as constructor argument
1 parent 5ddfc7b commit 1b5e939

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/ExtEventLoop.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,10 @@ final class ExtEventLoop implements LoopInterface
3636
private $signals;
3737
private $signalEvents = array();
3838

39-
public function __construct(EventBaseConfig $config = null)
39+
public function __construct()
4040
{
41-
if ($config === null) {
42-
$config = new EventBaseConfig();
43-
$config->requireFeatures(EventBaseConfig::FEATURE_FDS);
44-
}
41+
$config = new EventBaseConfig();
42+
$config->requireFeatures(EventBaseConfig::FEATURE_FDS);
4543

4644
$this->eventBase = new EventBase($config);
4745
$this->futureTickQueue = new FutureTickQueue();

0 commit comments

Comments
 (0)
0