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/Metabox.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Metabox.php') diff --git a/src/Metabox.php b/src/Metabox.php index 4da3c4c..64f9bfb 100644 --- a/src/Metabox.php +++ b/src/Metabox.php @@ -150,7 +150,7 @@ class Metabox }, $this->locations); // merge with extra options - $fieldGroup = array_merge_recursive([ + $fieldGroup = array_replace_recursive([ 'key' => $this->key, 'title' => $this->title, 'location' => $ruleGroups, -- cgit v1.2.3