Skip to content

Commit b714888

Browse files
Silence validator date parse warnings (#38670)
1 parent c6077f2 commit b714888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Validation/Concerns/ValidatesAttributes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ protected function getDateTime($value)
248248
{
249249
try {
250250
if ($this->isTestingRelativeDateTime($value)) {
251-
return Date::parse($value);
251+
return @Date::parse($value) ?: null;
252252
}
253253

254254
return date_create($value) ?: null;

0 commit comments

Comments
 (0)