diff --git a/Classes/Service/MergeClassesService.php b/Classes/Service/MergeClassesService.php index 6b0e206..a1a5982 100644 --- a/Classes/Service/MergeClassesService.php +++ b/Classes/Service/MergeClassesService.php @@ -71,9 +71,9 @@ private static function flattenMergeArgument($value): array $value = iterator_to_array($value); } if (is_array($value)) { - array_walk_recursive($value, function ($a) use (&$return) { + array_walk_recursive($value, function ($a, $key) use (&$return) { if ($a === true) { - $a = ['true']; + $a = [$key]; } if (is_scalar($a)) { $a = explode(' ', (string)$a);