From e9b7245e290bfcdf7ac4fab81fe70106c768fd9f Mon Sep 17 00:00:00 2001 From: Brent Roose Date: Thu, 3 Mar 2022 11:54:24 +0100 Subject: [PATCH] Fix for deprecation warning in 8.1 --- src/PeriodFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PeriodFactory.php b/src/PeriodFactory.php index 6320f66..c74a2e1 100644 --- a/src/PeriodFactory.php +++ b/src/PeriodFactory.php @@ -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'; }