From 3c439ce41c781159f588b400202c58f412227c58 Mon Sep 17 00:00:00 2001 From: everzet Date: Sun, 25 Sep 2011 20:59:54 +0300 Subject: [PATCH] Added "type" field validator to ArrayLoader --- src/Composer/Package/Loader/ArrayLoader.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Composer/Package/Loader/ArrayLoader.php b/src/Composer/Package/Loader/ArrayLoader.php index 83a6e2051..2f5ffad74 100644 --- a/src/Composer/Package/Loader/ArrayLoader.php +++ b/src/Composer/Package/Loader/ArrayLoader.php @@ -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'); + } } }