Skip to content

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

Merged
mnapoli merged 1 commit intomyclabs:1.xfrom
SpazzMarticus:fix-return-types-for-doctrine-proxy
Apr 29, 2025
Merged

Fix return types for Doctrine\Persistence\Proxy implementations#203
mnapoli merged 1 commit intomyclabs:1.xfrom
SpazzMarticus:fix-return-types-for-doctrine-proxy

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