1
0
Fork 0

Added "type" field validator to ArrayLoader

pull/19/head
everzet 2011-09-25 20:59:54 +03:00
parent 5890b05eb0
commit 3c439ce41c
1 changed files with 3 additions and 0 deletions

View File

@ -110,5 +110,8 @@ class ArrayLoader
if (!isset($config['version'])) { if (!isset($config['version'])) {
throw new \UnexpectedValueException('version is required for package'); throw new \UnexpectedValueException('version is required for package');
} }
if (!isset($config['type'])) {
throw new \UnexpectedValueException('type is required for package');
}
} }
} }