Skip to content

Sync ObjectRepository stub types with Doctrine#767

Merged
VincentLanglet merged 3 commits into
phpstan:2.0.xfrom
herndlm:sync-object-repository
Jun 10, 2026
Merged

Sync ObjectRepository stub types with Doctrine#767
VincentLanglet merged 3 commits into
phpstan:2.0.xfrom
herndlm:sync-object-repository

Conversation

@herndlm

@herndlm herndlm commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Refs: phpstan/phpstan#14802

See https://github.com/doctrine/persistence/blob/4.2.x/src/ObjectRepository.php

no clue if this file is even being needed still, maybe for older versions of Doctrine?

looks like they changed it to a list just recently, see doctrine/persistence@d2ab8e3

there's also open #762 which might be trying to fix the same thing

@herndlm herndlm marked this pull request as draft June 10, 2026 09:26
@herndlm herndlm force-pushed the sync-object-repository branch from 52cdec2 to 0a75162 Compare June 10, 2026 09:40
@herndlm herndlm force-pushed the sync-object-repository branch from 0a75162 to 3b43e2f Compare June 10, 2026 09:40
@herndlm

herndlm commented Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

saw those param changes and copied them over too. should I revert them to avoid potential annoying new reported issues popping up? 🤔

@herndlm herndlm marked this pull request as ready for review June 10, 2026 09:47
@VincentLanglet

Copy link
Copy Markdown
Contributor

saw those param changes and copied them over too. should I revert them to avoid potential annoying new reported issues popping up? 🤔

I think it's ok to have the same than original class, like you did

@VincentLanglet VincentLanglet requested a review from staabm June 10, 2026 09:53
@VincentLanglet VincentLanglet merged commit 22cd60b into phpstan:2.0.x Jun 10, 2026
51 checks passed
@herndlm herndlm deleted the sync-object-repository branch June 10, 2026 10:20
@herndlm

herndlm commented Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

hi guys, thx for merging this so fast, but the criteria type change was a bug/mistake, I get a huge amount of false positives now. let me quickly fix that.. sorry

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants