Could not convert PHP value of type DateTimeImmutable to type DoctrineDBALTypesDateTimeType
I have a Symfony Command that reads rows from a spreadsheet and inserts them into a MySQL table. The command was working fine in Symfony 4.4. I started getting this error after I upgraded my version of Symfony and PHP.