Skip to content

Commit f039f91

Browse files
anzinandrewbess
authored andcommitted
AC-2428: Fixed code, to avoid deprecation notices in unit tests build
1 parent 2aaffdd commit f039f91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ public function formatObject($object, $format = null, $locale = null)
6262
*/
6363
protected function doFormatObject($object, $format = null, $locale = null)
6464
{
65-
$pattern = $dateFormat = $timeFormat = $calendar = null;
65+
$pattern = $calendar = null;
6666

6767
if (is_array($format)) {
6868
list($dateFormat, $timeFormat) = $format;
6969
} elseif (is_numeric($format)) {
70-
$dateFormat = $format;
70+
$dateFormat = $timeFormat = $format;
7171
} elseif (is_string($format) || null == $format) {
7272
$dateFormat = $timeFormat = \IntlDateFormatter::MEDIUM;
7373
$pattern = $format;

0 commit comments

Comments
 (0)