Skip to content

Minor: RepositoryInterface generic #520

@rincler

Description

@rincler

No duplicates 🥲.

  • I have searched for a similar issue in our bug tracker and didn't find any solutions.

What happened?

Could you please make a small update to RepositoryInterface?

Change @template TEntity to @template TEntity of object just like it's done in Repository.

I'm experiencing an issue with PHPStan: https://phpstan.org/r/b906c8b7-d85c-44d6-bcb0-9b7828da8d9f
I'm particularly concerned about this error:

Call to an undefined method object::getStatus().

Adding @template TEntity of object on line 4 resolves the issue.

Thanks!

Version

ORM 2.10.0
PHP 8.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions