From 381535439881b5f24c743f4773efdf2dfa6e14bc Mon Sep 17 00:00:00 2001 From: Brandon Date: Thu, 29 Feb 2024 08:26:53 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20registering=20field=20grou?= =?UTF-8?q?ps=20with=20no=20fields=20(Fixes=20#215)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Field.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Field.php b/src/Field.php index 6bdca384..f79ff6c8 100644 --- a/src/Field.php +++ b/src/Field.php @@ -50,7 +50,7 @@ public function getFields(bool $cache = true): array throw new Exception('Fields must be an array or an instance of Builder.'); } - $fields = ! empty($fields['fields']) ? [$fields] : $fields; + $fields = ! empty($fields['key']) ? [$fields] : $fields; foreach ($fields as $key => $field) { $fields[$key] = is_a($field, FieldsBuilder::class)