mirror of
https://github.com/getgrav/grav.git
synced 2026-07-13 21:52:33 +02:00
Coerce ignore validation to array to cover both array/non-array values
This commit is contained in:
@@ -129,7 +129,7 @@ class BlueprintSchema extends BlueprintSchemaBase implements ExportInterface
|
||||
$items = $name !== '' ? $this->getProperty($name)['fields'] ?? [] : $this->items;
|
||||
foreach ($items as $key => $rules) {
|
||||
$type = $rules['type'] ?? '';
|
||||
$ignore = (bool) array_filter($rules['validate']['ignore'] ?? []) ?? false;
|
||||
$ignore = (bool) array_filter((array)($rules['validate']['ignore'] ?? [])) ?? false;
|
||||
if (!str_starts_with($type, '_') && !str_contains($key, '*') && $ignore !== true) {
|
||||
$list[$prefix . $key] = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user