Skip to content

Commit

Permalink
Don't perform operation twice
Browse files Browse the repository at this point in the history
This is why I shouldn't release things at this time of the day.

Signed-off-by: Luís Cobucci <[email protected]>
  • Loading branch information
lcobucci committed Sep 24, 2024
1 parent 049ecee commit 151e5c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FrozenClock.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 151e5c0

Please sign in to comment.