mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fix minor bug.
This commit is contained in:
parent
cc824faf54
commit
53d3a0921b
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user