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

Remove param from ProxyQueryInterface::execute #6827

Merged
merged 1 commit into from
Jan 31, 2021

Conversation

VincentLanglet
Copy link
Member

Subject

I am targeting this branch, because BC.

Closes #6260.

Changelog

### Changed
- `ProxyQueryInterface::execute(array $params = [], ?int $hydrationMode = null)` signature to `ProxyQueryInterface::execute()`

@VincentLanglet VincentLanglet added this to the 4.0 milestone Jan 31, 2021
@greg0ire greg0ire added the minor label Jan 31, 2021
@VincentLanglet VincentLanglet requested a review from a team January 31, 2021 16:03
@@ -128,6 +128,7 @@ public function getResults($hydrationMode = null)
return $this->results;
}

// @phpstan-ignore-next-line
$this->results = $this->getQuery()->execute([], $hydrationMode);
Copy link
Member

Choose a reason for hiding this comment

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

I think a NEXT_MAJOR version should be added to remove those arguments.

Copy link
Member Author

Choose a reason for hiding this comment

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

The method is already deprecated and removed in the next major.

@VincentLanglet VincentLanglet merged commit fb1399b into sonata-project:3.x Jan 31, 2021
VincentLanglet added a commit that referenced this pull request Feb 9, 2021
* Remove param from ProxyQueryInterface::execute (#6827)

* Explicitly require some packages (#6834)

* fix phpstan error (#6841)

* fix after merge

Co-authored-by: Vincent Langlet <[email protected]>
Co-authored-by: Fran Moreno <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ProxyQueryInterface::execute and PagerInterface::getResult methods are too much doctrine-related.
3 participants