From 193efe7e962370fde9d22ca3eb27cc4e2a8a845f Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Mon, 11 Nov 2019 13:23:14 -0600 Subject: [PATCH] Return null, not -1 --- lib/Loop/Internal/TimerQueue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Loop/Internal/TimerQueue.php b/lib/Loop/Internal/TimerQueue.php index ea328bb..d9e9697 100644 --- a/lib/Loop/Internal/TimerQueue.php +++ b/lib/Loop/Internal/TimerQueue.php @@ -99,7 +99,7 @@ final class TimerQueue */ public function peek() { - return isset($this->data[0]) ? $this->data[0]->expiration : -1; + return isset($this->data[0]) ? $this->data[0]->expiration : null; } /**