Throw InvalidArgumentException on invalid platform packages in config.

It's a user provided configuration value that's wrong so
it makes more sense.
main
Joakim Israelsson 10 years ago
parent ac89a5bb3b
commit 19b3955022

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

Loading…
Cancel
Save