From 38dc07bc55211092c5ae80eb5d6030d0e1d0833c Mon Sep 17 00:00:00 2001 From: Sander de Vries Date: Mon, 10 Oct 2022 13:14:00 +0200 Subject: [PATCH] fix(field): Fix default field setting merge order (Fixes #127) (#132) Co-authored-by: Sander de Vries --- src/Composer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer.php b/src/Composer.php index eef83376..998cab9a 100644 --- a/src/Composer.php +++ b/src/Composer.php @@ -61,7 +61,7 @@ public function __construct(Application $app) : $this->fields; if ($this->defaults->has('field_group')) { - $this->fields = array_merge($this->fields ?? [], $this->defaults->get('field_group')); + $this->fields = array_merge($this->defaults->get('field_group'), $this->fields ?? []); } }