Skip to content

Commit 5cf391d

Browse files
committed
bug #808 [Autocomplete] Removing excess deprecation warning (weaverryan)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- [Autocomplete] Removing excess deprecation warning | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Tickets | None | License | MIT See: https://github.com/symfony/ux/pull/797/files#r1170531531 Commits ------- e250a68 [Autocomplete] Removing excess deprecation warning
2 parents 79a404d + e250a68 commit 5cf391d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Autocomplete/src/AutocompleteResultsExecutor.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ public function fetchResults(EntityAutocompleterInterface $autocompleter, string
7171

7272
$results = [];
7373

74-
if (!method_exists($autocompleter, 'getGroupBy')) {
75-
trigger_deprecation('symfony/ux-autocomplete', '2.8', 'Not implementing the "EntityAutocompleterInterface::getGroupBy()" in "%s" is deprecated.', get_debug_type($autocompleter));
76-
} elseif (null === $groupBy = $autocompleter->getGroupBy()) {
74+
if (!method_exists($autocompleter, 'getGroupBy') || null === $groupBy = $autocompleter->getGroupBy()) {
7775
foreach ($paginator as $entity) {
7876
$results[] = [
7977
'value' => $autocompleter->getValue($entity),

0 commit comments

Comments
 (0)