1
0
mirror of https://github.com/danog/amp.git synced 2024-12-11 17:09:40 +01:00

Return null, not -1

This commit is contained in:
Aaron Piotrowski 2019-11-11 13:23:14 -06:00
parent c73528e839
commit 193efe7e96
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

@ -99,7 +99,7 @@ final class TimerQueue
*/ */
public function peek() public function peek()
{ {
return isset($this->data[0]) ? $this->data[0]->expiration : -1; return isset($this->data[0]) ? $this->data[0]->expiration : null;
} }
/** /**