apitte-skeleton
apitte-skeleton copied to clipboard
TypeError at App\Model\Database\Entity\User::getLastLoggedAt()
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
lastLoggedAtto a random user.
Workaround is to set dates to build-in \DateTime type.
One possible solution is to use \DateTimeInterface.
That's really weird.
Same issue here. Installed skeleton via Composer with local DB (manually run the Migration script).