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

Deprecate global_agg() DSL, replace it by global() #1826

Merged
merged 2 commits into from
Oct 26, 2020

Conversation

deguif
Copy link
Collaborator

@deguif deguif commented Oct 23, 2020

Since PHP 7.0, there's no more reason to not use reserved keyword as class method name.

See original RFC.
See code sample

*/
public function global_agg(string $name): GlobalAggregation
{
@\trigger_error(\sprintf('The "%s()" method is deprecated since Elastica 7.0.1, use global() instead.', __METHOD__), E_USER_DEPRECATED);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Is related to #1823
So it can be adapted here once the linked PR gets merged, or vice versa.

@deguif deguif merged commit 788711f into ruflin:master Oct 26, 2020
@deguif deguif deleted the deprecate-global-agg-dsl branch March 19, 2021 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants