Skip to content

Commit

Permalink
fix undefined $expires and enable usage of DateInterval for expire
Browse files Browse the repository at this point in the history
  • Loading branch information
johanrosenson committed Feb 10, 2021
1 parent eb55fb4 commit 67aac68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InteractsWithDateTime.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ trait InteractsWithDateTime
*/
private function minutesUntil(DateTimeInterface $dateTime) : int
{
return (int) \floor($this->secondsUntil($expires) / 60);
return (int) \floor($this->secondsUntil($dateTime) / 60);
}

/**
Expand Down

0 comments on commit 67aac68

Please sign in to comment.