Skip to content

Commit 2f983a0

Browse files
xmavfascinosum
andauthored
AC-2563: Deprecation notices in \DateTimeFormatter::formatObject()
Co-authored-by: Max Lesechko <[email protected]>
1 parent 50ffeeb commit 2f983a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected function doFormatObject($object, $format = null, $locale = null)
6969
} elseif (is_numeric($format)) {
7070
$dateFormat = $format;
7171
$timeFormat = \IntlDateFormatter::FULL;
72-
} elseif (is_string($format) || null == $format) {
72+
} elseif (is_string($format) || null === $format) {
7373
$dateFormat = $timeFormat = \IntlDateFormatter::MEDIUM;
7474
$pattern = $format;
7575
} else {

0 commit comments

Comments
 (0)