Skip to content

Commit 47151a2

Browse files
committed
TASK: Add correct types ArrayHelper::sortByPropertyPath
1 parent 1912e47 commit 47151a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Neos.Neos/Classes/Fusion/Helper/ArrayHelper.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,10 @@ public function groupBy($set, $groupingKey)
9797

9898
/**
9999
* Sorts the input array by the $positionProperty of each element.
100+
* @param array<mixed> $set
101+
* @return array<mixed>
100102
*/
101-
public function sortByPropertyPath(array $set, $positionPropertyPath = 'position'): array
103+
public function sortByPropertyPath(array $set, string $positionPropertyPath = 'position'): array
102104
{
103105
return (new PositionalArraySorter($set, $positionPropertyPath))->toArray();
104106
}

0 commit comments

Comments
 (0)