Skip to content
Snippets Groups Projects

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

Merged Liam Morland requested to merge issue/webform-3254801:3254801-fix-returning-bool into 6.1.x
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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']);
Loading