contributte / apitte-skeleton

🎁 API / REST API / JSON API / PSR-7 / Middlewares project skeleton based on Nette Framework (@nette), Apitte (@apitte), Doctrine (@nettrine) and Contributte (@contributte) libraries by @f3l1x.

Home Page:https://examples.contributte.org/apitte-skeleton/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

vanam opened this issue · 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.

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).