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 at App\Model\Database\Entity\User::getLastLoggedAt() #248

Open
vanam opened this issue Mar 16, 2021 · 3 comments
Open

TypeError at App\Model\Database\Entity\User::getLastLoggedAt() #248

vanam opened this issue Mar 16, 2021 · 3 comments

Comments

@vanam
Copy link
Contributor

vanam commented Mar 16, 2021

TypeError

App\Model\Database\Entity\User::getLastLoggedAt(): Return value must be of type ?App\Model\Utils\DateTime, DateTime returned

Exactly the same works at https://github.com/contributte/webapp-skeleton/blob/master/app/model/Database/Entity/User.php

I am missing what is different.

How to reproduce:

  • Set lastLoggedAt to a random user.

Workaround is to set dates to build-in \DateTime type.

@vanam
Copy link
Contributor Author

vanam commented Mar 29, 2021

One possible solution is to use \DateTimeInterface.

@f3l1x
Copy link
Member

f3l1x commented Jun 2, 2021

That's really weird.

@fikusir
Copy link

fikusir commented Nov 13, 2021

Same issue here. Installed skeleton via Composer with local DB (manually run the Migration script).

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

No branches or pull requests

3 participants