Skip to content

Commit 280517a

Browse files
[Clock] Make ClockAwareTrait use the global clock by default
1 parent 93c1a57 commit 280517a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ClockAwareTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ public function setClock(ClockInterface $clock): void
3131

3232
protected function now(): \DateTimeImmutable
3333
{
34-
return ($this->clock ??= new NativeClock())->now();
34+
return ($this->clock ??= new Clock())->now();
3535
}
3636
}

0 commit comments

Comments
 (0)