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
Loading
Loading
Loading
Loading
+1 −1
Changes for src/Controller/WebformElementController.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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']);