Skip to content

Psalm LessSpecificImplementedReturnType error on Repository's findAll() docblock #815

Open
@ThomasLandauer

Description

@ThomasLandauer

Psalm is reporting this:

ERROR: LessSpecificImplementedReturnType - src/Repository/LinkRepository.php:8:12 - The inherited return type 'list' for Doctrine\ORM\EntityRepository::findAll is more specific than the implemented return type for Doctrine\ORM\EntityRepository::findall 'array<array-key, App\Entity\Link>' (see https://psalm.dev/166)
/**

  • @method Link|null find($id, $lockMode = null, $lockVersion = null)
  • @method Link|null findOneBy(array $criteria, array $orderBy = null)
  • @method Link[] findAll()
  • @method Link[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
  • @extends ServiceEntityRepository
    */

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions