Skip to content

Commit e9b7245

Browse files
committed
Fix for deprecation warning in 8.1
1 parent c62c562 commit e9b7245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PeriodFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ protected static function resolveFormat(
119119
return $format;
120120
}
121121

122-
if (! str_contains($format, ' ') && str_contains($date, ' ')) {
122+
if (str_contains($date, ' ')) {
123123
return 'Y-m-d H:i:s';
124124
}
125125

0 commit comments

Comments
 (0)