Browse Source

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 years ago
parent
commit
19b3955022
1 changed files with 1 additions and 1 deletions
  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);
                 parent::addPackage($package);
             }
             }
             else {
             else {
-                throw new \UnexpectedValueException('Invalid platform package "'.$name);
+                throw new \InvalidArgumentException('Invalid platform package '.$name);
             }
             }
         }
         }