diff options
Diffstat (limited to 'vendor/sabre/event/lib/Loop')
-rw-r--r-- | vendor/sabre/event/lib/Loop/Loop.php | 4 | ||||
-rw-r--r-- | vendor/sabre/event/lib/Loop/functions.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/vendor/sabre/event/lib/Loop/Loop.php b/vendor/sabre/event/lib/Loop/Loop.php index b85a7a440..74981da08 100644 --- a/vendor/sabre/event/lib/Loop/Loop.php +++ b/vendor/sabre/event/lib/Loop/Loop.php @@ -24,7 +24,7 @@ class Loop */ public function setTimeout(callable $cb, float $timeout) { - $triggerTime = microtime(true) + ($timeout); + $triggerTime = microtime(true) + $timeout; if (!$this->timers) { // Special case when the timers array was empty. @@ -265,7 +265,7 @@ class Loop * If $timeout is 0, it will return immediately. If $timeout is null, it * will wait indefinitely. * - * @param float|null timeout + * @param float|null $timeout */ protected function runStreams($timeout) { diff --git a/vendor/sabre/event/lib/Loop/functions.php b/vendor/sabre/event/lib/Loop/functions.php index bf4d933f2..9412a77ff 100644 --- a/vendor/sabre/event/lib/Loop/functions.php +++ b/vendor/sabre/event/lib/Loop/functions.php @@ -130,7 +130,7 @@ function stop() /** * Retrieves or sets the global Loop object. */ -function instance(Loop $newLoop = null): Loop +function instance(?Loop $newLoop = null): Loop { static $loop; if ($newLoop) { |