diff --git a/src/InteractsWithDateTime.php b/src/InteractsWithDateTime.php index 245816b..c01d033 100644 --- a/src/InteractsWithDateTime.php +++ b/src/InteractsWithDateTime.php @@ -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); } /**