diff --git a/system/src/Grav/Common/Data/BlueprintForm.php b/system/src/Grav/Common/Data/BlueprintForm.php index 9927ef782..236603519 100644 --- a/system/src/Grav/Common/Data/BlueprintForm.php +++ b/system/src/Grav/Common/Data/BlueprintForm.php @@ -87,7 +87,7 @@ abstract class BlueprintForm implements \ArrayAccess, ExportInterface * @param array $overrides * @return $this */ - public function setOverrides(array $overrides) + public function setOverrides($overrides) { $this->overrides = $overrides; diff --git a/system/src/Grav/Common/Data/Blueprints.php b/system/src/Grav/Common/Data/Blueprints.php index 4f8c67ae5..af9e76044 100644 --- a/system/src/Grav/Common/Data/Blueprints.php +++ b/system/src/Grav/Common/Data/Blueprints.php @@ -86,7 +86,7 @@ class Blueprints { $blueprint = new Blueprint($name); - if (is_array($this->search)) { + if (is_array($this->search) || is_object($this->search)) { $blueprint->setOverrides($this->search); } else { $blueprint->setContext($this->search);