From 7c0dcd6808d763809d5effebf0dde32e73e0e64e Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Tue, 14 Jan 2020 17:54:19 +0200 Subject: [PATCH] Fixed special case [#1273] --- system/src/Grav/Common/Data/BlueprintSchema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Data/BlueprintSchema.php b/system/src/Grav/Common/Data/BlueprintSchema.php index f7c716780..fe24c4384 100644 --- a/system/src/Grav/Common/Data/BlueprintSchema.php +++ b/system/src/Grav/Common/Data/BlueprintSchema.php @@ -151,7 +151,7 @@ class BlueprintSchema extends BlueprintSchemaBase implements ExportInterface $messages += Validation::validate($child, $rule); } elseif (\is_array($child) && \is_array($val)) { // Array has been defined in blueprints. - $messages += $this->validateArray($child, $val, $rule); + $messages += $this->validateArray($child, $val, $rule ?? []); } elseif (isset($parent['validation']) && $parent['validation'] === 'strict') { // Undefined/extra item. throw new \RuntimeException(sprintf('%s is not defined in blueprints', $key));