Commit b4c808f4 authored by Nick van Boven's avatar Nick van Boven Committed by Rico Van de Vin
Browse files

Issue #3258238: php 7.4 Notice: Trying to access array offset on value of type...

Issue #3258238: php 7.4 Notice: Trying to access array offset on value of type bool in Drupal\facets_range_dropdowns\Plugin\facets\processor\RangeProcessor->getMinMax()
parent a501a7e2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -191,8 +191,8 @@ class RangeProcessor extends ProcessorPluginBase implements PreQueryProcessorInt
      $max = $config['max_value'];
    }
    else {
      $min = reset($results)['value'];
      $max = end($results)['value'];
      $min = reset($results)['value'] ?? 0;
      $max = end($results)['value'] ?? 0;
      // If max is not divisible by step we should add the remainder to max to
      // make sure that we do not lose any possible values.
      if ($max % $step !== 0) {