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:
parent
c73528e839
commit
193efe7e96
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user