Explorar o código

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 %!s(int64=11) %!d(string=hai) anos
pai
achega
19b3955022
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
             }
         }