Skip to content

Commit

Permalink
According to Psalm, DateTimeImmutable::getTimezone() does not return …
Browse files Browse the repository at this point in the history
…`false`
  • Loading branch information
devnix committed Nov 4, 2024
1 parent 47a5d61 commit 70b4f15
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Psl/Clock/PsrClock.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public function now(): DateTime\DateTimeInterface
$timestamp = DateTime\Timestamp::fromParts($nativeDateTime->getTimestamp());

$timezone = $nativeDateTime->getTimezone();
invariant($timezone !== false, 'Could not get the timezone object.');

$timezone = DateTime\Timezone::from($timezone->getName());

Expand Down

0 comments on commit 70b4f15

Please sign in to comment.