Skip to content
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

Main request #385

Closed
wants to merge 4 commits into from
Closed

Main request #385

wants to merge 4 commits into from

Conversation

loic425
Copy link
Member

@loic425 loic425 commented Mar 28, 2022

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Related tickets
License MIT

Copy of #332 to 1.8 branch

@loic425 loic425 requested a review from a team as a code owner March 28, 2022 10:03
@Roshyo
Copy link
Contributor

Roshyo commented Mar 29, 2022

Isn't it a BC break ? I mean, some classes are not final, so introducing a return type should be BC break. Or am I wrong ?

@vvasiloi
Copy link
Contributor

@Roshyo no, since PHP 7.4 there's full covariance support: https://www.php.net/manual/en/language.oop5.variance.php#language.oop5.variance.covariance

* @return QueryBuilder
*/
protected function getCollectionQueryBuilder()
protected function getCollectionQueryBuilder(): QueryBuilder\
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that trailing \ desired ?

@@ -28,14 +28,11 @@ class DefaultParentListener
/** @var DocumentManagerInterface */
private $documentManager;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not enforcing this one too ?

@loic425 loic425 mentioned this pull request Mar 29, 2022
16 tasks
@loic425 loic425 closed this Apr 7, 2022
@loic425 loic425 deleted the main-request branch April 7, 2022 13:21
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.

4 participants