Skip to content

Commit

Permalink
Fix: Handle true value in objects
Browse files Browse the repository at this point in the history
Closes #11
  • Loading branch information
jonnitto authored Aug 6, 2024
1 parent d138430 commit 3943968
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Service/MergeClassesService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3943968

Please sign in to comment.