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));