Skip to content

Commit 5e22c9d

Browse files
committed
Fixed static tests
1 parent 108a34d commit 5e22c9d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/Magento/Framework/Stdlib/DateTime/Timezone.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ public function formatDate($date = null, $format = \IntlDateFormatter::SHORT, $s
239239
{
240240
$formatTime = $showTime ? $format : \IntlDateFormatter::NONE;
241241

242-
if (!($date instanceof \DateTimeInterface)) {
242+
if (!$date instanceof \DateTimeInterface) {
243+
/** @phpstan-ignore-next-line */
243244
$date = new \DateTime($date ?? 'now');
244245
}
245246

0 commit comments

Comments
 (0)