The expression return parent::setProperty($property) returns the type WebTheory\Collection\Sor...ractPropertyBasedSorter which includes types incompatible with the type-hinted return WebTheory\Collection\Sorting\MapBasedSorter.
Loading history...
23
}
24
25
6
protected function getSortingFunction(string $order = OrderInterface::ASC): callable
26
{
27
6
return fn ($a, $b): int => $this->resolveEntriesOrder(
28
6
$this->getComparisonValueFor($a),
29
6
$this->getComparisonValueFor($b),
30
$order
31
);
32
}
33
34
6
protected function getComparisonValueFor($item): int