Skip to content
Snippets Groups Projects
Commit 13802de9 authored by Liam Morland's avatar Liam Morland Committed by Jacob Rockowitz
Browse files

Issue #3254801 by Liam Morland: Fix "Returning bool from comparison function is deprecated"

parent e751df04
Branches
Tags
1 merge request!104Issue #3254801: Fix "Returning bool from comparison function is deprecated"
......@@ -97,7 +97,7 @@ class WebformElementController extends ControllerBase {
// Sort matches by label and enforce the limit.
if ($matches) {
uasort($matches, function (array $a, array $b) {
return $a['label'] > $b['label'];
return $a['label'] <=> $b['label'];
});
$matches = array_values($matches);
$matches = array_slice($matches, 0, $element['#autocomplete_limit']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment