Skip to content

Commit

Permalink
remove not needed assert in DateTimeHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
hrach committed Aug 1, 2021
1 parent 2a4b016 commit 99577c6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Utils/DateTimeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ class DateTimeHelper
public static function convertToTimezone(DateTimeInterface $value, DateTimeZone $connectionTz): DateTimeInterface
{
$valueTimezone = $value->getTimezone();
assert($value instanceof DateTime || $value instanceof \DateTimeImmutable);
assert($valueTimezone !== false); // @phpstan-ignore-line

if ($valueTimezone->getName() !== $connectionTz->getName()) {
Expand Down

0 comments on commit 99577c6

Please sign in to comment.