diff --git a/src/Block.php b/src/Block.php index bc494274..bc6f246b 100644 --- a/src/Block.php +++ b/src/Block.php @@ -252,7 +252,7 @@ protected function build() return; } - return [array_merge($field, $this->defaults->get($field['type']))]; + return [array_merge($this->defaults->get($field['type']), $field)]; } return $value; diff --git a/src/Field.php b/src/Field.php index 14e567fb..45ef7782 100644 --- a/src/Field.php +++ b/src/Field.php @@ -74,7 +74,7 @@ protected function build() return; } - return [array_merge($field, $this->defaults->get($field['type']))]; + return [array_merge($this->defaults->get($field['type']), $field)]; } return $value;