Fix minor bug.

This commit is contained in:
Pol Dellaiera 2021-07-10 08:17:37 +02:00
parent cc824faf54
commit 53d3a0921b

View File

@ -18,8 +18,7 @@ final class FlatHierarchyEntityHydrator extends ObjectHydrator
private function flatListGenerator(array $hashMap, ?int $parent = null): Generator
{
$parent ??= spl_object_id($parent);
$parent = null === $parent ? null : spl_object_id($parent);
$hashMap += [$parent => []];
foreach ($hashMap[$parent] as $node) {