We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ArrayHelper::sortByPropertyPath
1 parent 1912e47 commit 47151a2Copy full SHA for 47151a2
Neos.Neos/Classes/Fusion/Helper/ArrayHelper.php
@@ -97,8 +97,10 @@ public function groupBy($set, $groupingKey)
97
98
/**
99
* Sorts the input array by the $positionProperty of each element.
100
+ * @param array<mixed> $set
101
+ * @return array<mixed>
102
*/
- public function sortByPropertyPath(array $set, $positionPropertyPath = 'position'): array
103
+ public function sortByPropertyPath(array $set, string $positionPropertyPath = 'position'): array
104
{
105
return (new PositionalArraySorter($set, $positionPropertyPath))->toArray();
106
}
0 commit comments