Skip to content

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

Open
@vanam

Description

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.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions