Skip to content

Commit

Permalink
fix(global): Allow overwriting field type defaults per-field
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Dec 31, 2019
1 parent 7900fff commit 00304e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 00304e7

Please sign in to comment.