From 151e5c069ba1429c06fd8196e34f269be5bc35ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Cobucci?= Date: Tue, 24 Sep 2024 22:43:19 +0200 Subject: [PATCH] Don't perform operation twice MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is why I shouldn't release things at this time of the day. Signed-off-by: Luís Cobucci --- src/FrozenClock.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FrozenClock.php b/src/FrozenClock.php index 5b3c604..b9d03b7 100644 --- a/src/FrozenClock.php +++ b/src/FrozenClock.php @@ -41,7 +41,7 @@ public function adjustTime(string $modifier): void throw new InvalidArgumentException('The given modifier is invalid'); } - $this->now = $this->now->modify($modifier); + $this->now = $modifiedTime; } public function now(): DateTimeImmutable