Skip to content

Commit

Permalink
Merge pull request #691 from lcobucci/fix-frozen-clock-adjustment
Browse files Browse the repository at this point in the history
Don't perform operation twice
  • Loading branch information
lcobucci authored Sep 24, 2024
2 parents 049ecee + 151e5c0 commit db3713a
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 db3713a

Please sign in to comment.