mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-05 04:49:44 +00:00
Add minor typing.
This commit is contained in:
@@ -31,7 +31,7 @@ final class FlatHierarchyEntityHydrator extends ObjectHydrator
|
|||||||
{
|
{
|
||||||
return array_reduce(
|
return array_reduce(
|
||||||
$nodes,
|
$nodes,
|
||||||
static function (array $collect, $node) {
|
static function (array $collect, $node): array {
|
||||||
$parentId = (null === $parent = $node->getParent()) ?
|
$parentId = (null === $parent = $node->getParent()) ?
|
||||||
null :
|
null :
|
||||||
spl_object_id($parent);
|
spl_object_id($parent);
|
||||||
|
Reference in New Issue
Block a user