Skip to content

Commit

Permalink
Fix for deprecation warning in 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed Mar 3, 2022
1 parent c62c562 commit e9b7245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PeriodFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ protected static function resolveFormat(
return $format;
}

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

Expand Down

0 comments on commit e9b7245

Please sign in to comment.