Skip to content

Fix return types for Doctrine\Persistence\Proxy implementations #203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

SpazzMarticus
Copy link
Contributor

Cloning the repo and running composer install and vendor/bin/phpunit failed with:

PHP Fatal error: Declaration of DeepCopyTest\Matcher\Doctrine\FooProxy::__load() must be compatible with Doctrine\Persistence\Proxy::__load(): void

This merge request adds the required return-types to __load (void) and __isInitialized (bool) of Doctrine\Persistence\Proxy implementations.

PHP Fatal error:  Declaration of DeepCopyTest\Matcher\Doctrine\FooProxy::__load() must be compatible with Doctrine\Persistence\Proxy::__load(): void
@mnapoli mnapoli merged commit 1720ddd into myclabs:1.x Apr 29, 2025
19 checks passed
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.

2 participants