mirror of
https://github.com/getgrav/grav.git
synced 2026-03-23 04:50:08 +01:00
Fixed special case [#1273]
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user