File tree 2 files changed +2
-12
lines changed 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ final class SystemClock implements Clock
12
12
{
13
13
private DateTimeZone $ timezone ;
14
14
15
- public function __construct (? DateTimeZone $ timezone = null )
15
+ public function __construct (DateTimeZone $ timezone )
16
16
{
17
- $ this ->timezone = $ timezone ?? new DateTimeZone ( date_default_timezone_get ()) ;
17
+ $ this ->timezone = $ timezone ;
18
18
}
19
19
20
20
public static function fromUTC (): self
Original file line number Diff line number Diff line change 12
12
/** @coversDefaultClass \Lcobucci\Clock\SystemClock */
13
13
final class SystemClockTest extends TestCase
14
14
{
15
- /**
16
- * @test
17
- *
18
- * @covers ::__construct
19
- */
20
- public function constructShouldUseSystemDefaultTimezoneIfNoneWasProvided (): void
21
- {
22
- self ::assertEquals (new SystemClock (new DateTimeZone (date_default_timezone_get ())), new SystemClock ());
23
- }
24
-
25
15
/**
26
16
* @test
27
17
*
You can’t perform that action at this time.
0 commit comments