Add collections validation

This commit is contained in:
Matias Griese
2016-03-15 14:37:22 +02:00
parent 9f79c018e6
commit 3f25ad7c4f
2 changed files with 6 additions and 5 deletions

8
composer.lock generated
View File

@@ -638,12 +638,12 @@
"source": {
"type": "git",
"url": "https://github.com/rockettheme/toolbox.git",
"reference": "e3468ec2dfb8c832f7d9ae508af445ea3fbaf54b"
"reference": "bb8902cf4ec25ece14d89efc743f3732244e18a8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/rockettheme/toolbox/zipball/e3468ec2dfb8c832f7d9ae508af445ea3fbaf54b",
"reference": "e3468ec2dfb8c832f7d9ae508af445ea3fbaf54b",
"url": "https://api.github.com/repos/rockettheme/toolbox/zipball/bb8902cf4ec25ece14d89efc743f3732244e18a8",
"reference": "bb8902cf4ec25ece14d89efc743f3732244e18a8",
"shasum": ""
},
"require": {
@@ -678,7 +678,7 @@
"php",
"rockettheme"
],
"time": "2016-03-10 13:16:52"
"time": "2016-03-15 12:06:40"
},
{
"name": "symfony/console",

View File

@@ -69,7 +69,8 @@ class BlueprintSchema extends BlueprintSchemaBase implements ExportInterface
$messages = $this->checkRequired($data, $rules);
foreach ($data as $key => $field) {
$val = isset($rules[$key]) ? $rules[$key] : null;
$val = isset($rules[$key]) ? $rules[$key] : (isset($rules['*']) ? $rules['*'] : null);
$rule = is_string($val) ? $this->items[$val] : null;
if ($rule) {