From b58ef264c861684a47232ebc60fbc2a9e9146ebb Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 8 Jun 2019 13:56:57 +0200 Subject: [PATCH] Simplify version detection --- lib/Loop/NativeDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Loop/NativeDriver.php b/lib/Loop/NativeDriver.php index 308d88a..0316912 100644 --- a/lib/Loop/NativeDriver.php +++ b/lib/Loop/NativeDriver.php @@ -50,7 +50,7 @@ class NativeDriver extends Driver { $this->timerQueue = new Internal\TimerQueue; $this->signalHandling = \extension_loaded("pcntl"); - $this->manualSignalHandling = !(\PHP_MAJOR_VERSION >= 7 && \PHP_MINOR_VERSION >= 1); + $this->manualSignalHandling = PHP_VERSION_ID < 70100; $this->nowOffset = getCurrentTime(); $this->now = \random_int(0, $this->nowOffset); $this->nowOffset -= $this->now;