diff --git a/src/Composer/Repository/PlatformRepository.php b/src/Composer/Repository/PlatformRepository.php index 8d4e639c3..909eaab7c 100644 --- a/src/Composer/Repository/PlatformRepository.php +++ b/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); } }