-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Enforce native type declarations #11013
Conversation
ae8af1a
to
b13462e
Compare
b13462e
to
46c04f4
Compare
This requires heavily adapting tests, because the proxy instance must: - be an instance of InternalProxy (easy) - be a valid entity (hard, especially for PHPUnit)
I tried to avoid changes in tests, so as to not unnecessarily widen the gap between 2.x and 3.x.
46c04f4
to
8ab0af3
Compare
|
||
return parent::getProxy($className, $identifier); | ||
} | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@derrabus I pushed a new commit, it reworks this test and the one below, allowing to use a native return type declaration for ProxyFactory::getProxy()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I flew over the changes and they seem to fit. 👍
I tried to avoid changes in
tests
, so as to not unnecessarily widen thegap between 2.x and 3.x.