Added "type" field validator to ArrayLoader
parent
5890b05eb0
commit
3c439ce41c
|
@ -110,5 +110,8 @@ class ArrayLoader
|
|||
if (!isset($config['version'])) {
|
||||
throw new \UnexpectedValueException('version is required for package');
|
||||
}
|
||||
if (!isset($config['type'])) {
|
||||
throw new \UnexpectedValueException('type is required for package');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue