Updated to coding standard v2.2.0

This commit is contained in:
Alejandro Celaya
2021-08-05 19:47:17 +02:00
parent 60d6314262
commit 9a31f53d4d
38 changed files with 40 additions and 51 deletions

View File

@@ -55,10 +55,7 @@ function parseDateRangeFromQuery(array $query, string $startDateName, string $en
return buildDateRange($startDate, $endDate);
}
/**
* @param string|DateTimeInterface|Chronos|null $date
*/
function parseDateField($date): ?Chronos
function parseDateField(string|DateTimeInterface|Chronos|null $date): ?Chronos
{
if ($date === null || $date instanceof Chronos) {
return $date;