Open vanam opened 3 years ago
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:
lastLoggedAt
Workaround is to set dates to build-in \DateTime type.
\DateTime
One possible solution is to use \DateTimeInterface.
\DateTimeInterface
That's really weird.
Same issue here. Installed skeleton via Composer with local DB (manually run the Migration script).
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:
lastLoggedAt
to a random user.Workaround is to set dates to build-in
\DateTime
type.