Skip to content

Conversation

@VincentLanglet
Copy link
Contributor

Closes #663
Closes #646

This is maybe not perfect, but this is the choice of doctrine/persistence
PR on 5.x https://github.com/doctrine/persistence/pull/473/files#diff-546eb60e406d89362faee89bd404217c4f74305586b791ad1198ff6405c5fdbc
Backport doctrine/persistence#476

@ondrejmirtes
Copy link
Member

What I don't understand is why the error in the stubs does not show up here https://github.com/phpstan/phpstan-doctrine/actions/workflows/build.yml?query=branch%3A2.0.x and only in analysed projects (when the stub error filtering breaks).

@VincentLanglet
Copy link
Contributor Author

What I don't understand is why the error in the stubs does not show up here phpstan/phpstan-doctrine/actions/workflows/build.yml?query=branch%3A2.0.x and only in analysed projects (when the stub error filtering breaks).

Indeed...

It's weird because locally on PHP 8.4 after a composer update, I have the error on the phpstan-doctrine repository
image

@VincentLanglet
Copy link
Contributor Author

@ondrejmirtes I found the reason, I can reproduce the error with #710

@ondrejmirtes ondrejmirtes force-pushed the covariantReflectionClass branch from 512be18 to 76b02b1 Compare November 4, 2025 09:51
@ondrejmirtes ondrejmirtes merged commit 368ad1c into phpstan:2.0.x Nov 4, 2025
39 of 40 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

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.

Errors in stubs causing phpstan to fail in php8.4

2 participants