From 2f3a7edc70004a75f0364f20ee68ab94da1afd2b Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Tue, 2 Feb 2021 19:59:20 +0100 Subject: Replaces array_merge_recursive with array_replace_recursive --- src/MetaboxField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/MetaboxField.php') diff --git a/src/MetaboxField.php b/src/MetaboxField.php index 8112d9b..4ace7b1 100644 --- a/src/MetaboxField.php +++ b/src/MetaboxField.php @@ -107,7 +107,7 @@ class MetaboxField public function add() { // merge with extra options - $field = array_merge_recursive([ + $field = array_replace_recursive([ 'key' => $this->key, 'label' => $this->names['label'], 'name' => $this->names['name'], -- cgit v1.2.3