The expression return DateTimeImmutable...at('ymdHis', $authDate) could return the type false which is incompatible with the type-hinted return DateTimeImmutable. Consider adding an additional type-check to rule them out.
Loading history...
36
}
37
38
1
private function parseSettlementDate(string $settlementDate): DateTimeImmutable
The expression return DateTimeImmutable...Date)->setTime(0, 0, 0) could return the type false which is incompatible with the type-hinted return DateTimeImmutable. Consider adding an additional type-check to rule them out.