Skip to content

Doctrine DBAL4 related error? #65

@pfpro

Description

@pfpro

Symfony 6.4.12

since today i have a error message when running shapecode:cron:scan:

In InvalidType.php line 51:
Could not convert PHP value of type Symfony\Component\Clock\DatePoint to type Doctrine\DBAL\Types\DateTimeType.  
Expected one of the following types: null, DateTime. 
Failed to run php bin/console shapecode:cron:scan: exit status 1

Maybe its related to doctrine/dbal 4, which i am using since today?

{"exception":"[object] (Doctrine\\DBAL\\Types\\Exception\\InvalidType(code: 0): Could not convert PHP value of type Symfony\\Component\\Clock\\DatePoint to type Doctrine\\DBAL\\Types\\DateTimeType. Expected one of the following types: null, DateTime. at /usr/www/users/pfpro/r6-client/pfpro-git/vendor/doctrine/dbal/src/Types/Exception/InvalidType.php:51)","command":"shapecode:cron:run","message":"Could not convert PHP value of type Symfony\\Component\\Clock\\DatePoint to type Doctrine\\DBAL\\Types\\DateTimeType. Expected one of the following types: null, DateTime."} []

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions