Skip to content

Commit ccc2cfd

Browse files
author
Igor Melnikov
committed
MAGETWO-45343: Address feedback in CR-MAGETWO-23330
Fixing method signature
1 parent ccb1fb9 commit ccc2cfd

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public function isScopeDateInInterval($scope, $dateFrom = null, $dateTo = null)
244244
* @return string
245245
*/
246246
public function formatDateTime(
247-
\DateTimeInterface $date,
247+
$date,
248248
$dateType = \IntlDateFormatter::SHORT,
249249
$timeType = \IntlDateFormatter::SHORT,
250250
$locale = null,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function getConfigTimezone($scopeType = null, $scopeCode = null);
121121
public function isScopeDateInInterval($scope, $dateFrom = null, $dateTo = null);
122122

123123
/**
124-
* @param \DateTimeInterface $date
124+
* @param string|\DateTimeInterface $date
125125
* @param int $dateType
126126
* @param int $timeType
127127
* @param null $locale
@@ -130,7 +130,7 @@ public function isScopeDateInInterval($scope, $dateFrom = null, $dateTo = null);
130130
* @return string
131131
*/
132132
public function formatDateTime(
133-
\DateTimeInterface $date,
133+
$date,
134134
$dateType = \IntlDateFormatter::SHORT,
135135
$timeType = \IntlDateFormatter::SHORT,
136136
$locale = null,

0 commit comments

Comments
 (0)