Skip to content

[Autocomplete] Removing excess deprecation warning #808

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

Merged
merged 1 commit into from
Apr 24, 2023

Conversation

weaverryan
Copy link
Member

Q A
Bug fix? yes
New feature? no
Tickets None
License MIT

See: https://github.com/symfony/ux/pull/797/files#r1170531531

if (!method_exists($autocompleter, 'getGroupBy')) {
trigger_deprecation('symfony/ux-autocomplete', '2.8', 'Not implementing the "EntityAutocompleterInterface::getGroupBy()" in "%s" is deprecated.', get_debug_type($autocompleter));
} elseif (null === $groupBy = $autocompleter->getGroupBy()) {
if (null === $groupBy = $autocompleter->getGroupBy()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Still requires a method_exists() call, doesn't it?

Copy link
Member Author

Choose a reason for hiding this comment

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

lol, duh

@weaverryan weaverryan force-pushed the remove-excess-deprecation branch from b80893c to 1f79a71 Compare April 20, 2023 15:55
@weaverryan weaverryan force-pushed the remove-excess-deprecation branch from 1f79a71 to e250a68 Compare April 24, 2023 18:32
@weaverryan weaverryan merged commit 5cf391d into symfony:2.x Apr 24, 2023
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