소스 검색

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);
             }
         }