Skip to content

Commit 932e3c8

Browse files
Merge branch '6.1' into 6.2
* 6.1: [HttpKernel] fix merge [FrameworkBundle] fix test
2 parents dbc8b83 + 53aa7cf commit 932e3c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Controller/ArgumentResolver/DateTimeValueResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function resolve(Request $request, ArgumentMetadata $argument): array
6565
if (null !== $format) {
6666
$date = $class::createFromFormat($format, $value);
6767

68-
if ($class::getLastErrors()['warning_count']) {
68+
if (($class::getLastErrors() ?: ['warning_count' => 0])['warning_count']) {
6969
$date = false;
7070
}
7171
} else {

0 commit comments

Comments
 (0)