Skip to content

findAll and findBy should return list#499

Merged
greg0ire merged 1 commit into
doctrine:4.2.xfrom
stchr:find-return-list
Feb 6, 2026
Merged

findAll and findBy should return list#499
greg0ire merged 1 commit into
doctrine:4.2.xfrom
stchr:find-return-list

Conversation

@stchr

@stchr stchr commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

https://github.com/doctrine/orm/blob/3.6.x/src/EntityRepository.php already has this narrowed return type

See discussion in #498

@greg0ire greg0ire added this to the 4.2.0 milestone Feb 6, 2026
@greg0ire greg0ire merged commit 84576b0 into doctrine:4.2.x Feb 6, 2026
11 checks passed
@greg0ire

greg0ire commented Feb 6, 2026

Copy link
Copy Markdown
Member

Thanks @stchr !

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants