浏览代码

Throw InvalidArgumentException on invalid platform packages in config.

It's a user provided configuration value that's wrong so
it makes more sense.
Joakim Israelsson 11 年之前
父节点
当前提交
19b3955022
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/Repository/PlatformRepository.php

+ 1 - 1
src/Composer/Repository/PlatformRepository.php

@@ -49,7 +49,7 @@ class PlatformRepository extends ArrayRepository
                 parent::addPackage($package);
             }
             else {
-                throw new \UnexpectedValueException('Invalid platform package "'.$name);
+                throw new \InvalidArgumentException('Invalid platform package '.$name);
             }
         }