diff --git a/src/ExtEventLoop.php b/src/ExtEventLoop.php index 4146fc18..4582a38a 100644 --- a/src/ExtEventLoop.php +++ b/src/ExtEventLoop.php @@ -36,8 +36,11 @@ final class ExtEventLoop implements LoopInterface private $signals; private $signalEvents = array(); - public function __construct(EventBaseConfig $config = null) + public function __construct() { + $config = new EventBaseConfig(); + $config->requireFeatures(EventBaseConfig::FEATURE_FDS); + $this->eventBase = new EventBase($config); $this->futureTickQueue = new FutureTickQueue(); $this->timerEvents = new SplObjectStorage(); diff --git a/tests/ExtEventLoopTest.php b/tests/ExtEventLoopTest.php index 52c65309..2f88d184 100644 --- a/tests/ExtEventLoopTest.php +++ b/tests/ExtEventLoopTest.php @@ -16,13 +16,7 @@ public function createLoop($readStreamCompatible = false) $this->markTestSkipped('ext-event tests skipped because ext-event is not installed.'); } - $cfg = null; - if ($readStreamCompatible) { - $cfg = new \EventConfig(); - $cfg->requireFeatures(\EventConfig::FEATURE_FDS); - } - - return new ExtEventLoop($cfg); + return new ExtEventLoop(); } public function createStream() pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy