mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
Fix minor bug.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user