Upgrade to 3.9.4

This commit is contained in:
Bastian Allgeier
2023-04-21 11:26:07 +02:00
parent cd495f054e
commit 38c8ba7e59
57 changed files with 4658 additions and 87 deletions

View File

@@ -459,10 +459,19 @@ class Blueprint
// groups don't need all the crap
if ($type === 'group') {
$fields = $props['fields'];
if (isset($props['when']) === true) {
$fields = array_map(
fn ($field) => array_replace_recursive(['when' => $props['when']], $field),
$fields
);
}
return [
'fields' => $props['fields'],
'fields' => $fields,
'name' => $name,
'type' => $type,
'type' => $type
];
}