apitte-skeleton icon indicating copy to clipboard operation
apitte-skeleton copied to clipboard

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

Open vanam opened this issue 3 years ago • 3 comments

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 avatar Mar 16 '21 21:03 vanam