Skip to content

Commit

Permalink
[Clock] Make ClockAwareTrait use the global clock by default
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jan 18, 2023
1 parent 1f7bc10 commit ec60013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Clock/ClockAwareTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ public function setClock(ClockInterface $clock): void

protected function now(): \DateTimeImmutable
{
return ($this->clock ??= new NativeClock())->now();
return ($this->clock ??= new Clock())->now();
}
}

0 comments on commit ec60013

Please sign in to comment.