diff --git a/lib/Loop/EventDriver.php b/lib/Loop/EventDriver.php index d3cb28b1..c4a9b9b5 100644 --- a/lib/Loop/EventDriver.php +++ b/lib/Loop/EventDriver.php @@ -39,8 +39,12 @@ class EventDriver extends Driver public function __construct() { - /** @psalm-suppress TooFewArguments https://github.com/JetBrains/phpstorm-stubs/pull/763 */ - $this->handle = new \EventBase; + $config = new \EventConfig(); + if (\DIRECTORY_SEPARATOR !== '\\') { + $config->requireFeatures(\EventConfig::FEATURE_FDS); + } + + $this->handle = new \EventBase($config); $this->nowOffset = getCurrentTime(); $this->now = \random_int(0, $this->nowOffset); $this->nowOffset -= $this->now;