Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError in PHP 8.1 Caused by Datetime::Createfromformat() Returning False #9

Open
Kaapiii opened this issue Jun 4, 2023 · 0 comments

Comments

@Kaapiii
Copy link

Kaapiii commented Jun 4, 2023

We ran into the following exception.

Uncaught TypeError: Linkin\Component\DoctrineUTCDateTime\DBAL\Types\UtcDateTimeType::convertToPHPValue(): Return value must be of type ?DateTimeInterface, bool returned in /srv/....

According to the PHP documentation, DateTime::createFromFormat() can return false, which conflicts with the specified return type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant