Throw InvalidArgumentException on invalid platform packages in config.
It's a user provided configuration value that's wrong so it makes more sense.pull/2990/head
parent
ac89a5bb3b
commit
19b3955022
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue