Add minor typing.

This commit is contained in:
Pol Dellaiera 2021-07-10 08:18:00 +02:00
parent 53d3a0921b
commit d0b51f3573

View File

@ -31,7 +31,7 @@ final class FlatHierarchyEntityHydrator extends ObjectHydrator
{
return array_reduce(
$nodes,
static function (array $collect, $node) {
static function (array $collect, $node): array {
$parentId = (null === $parent = $node->getParent()) ?
null :
spl_object_id($parent);