1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 08:32:56 +00:00

Fix fatal error if class is not specified

This commit is contained in:
Sebastian Kurfuerst 2011-12-19 12:05:18 +01:00 committed by Jordi Boggiano
parent 680db4d1da
commit 03e627e444

View file

@ -53,7 +53,7 @@ class InstallerInstaller extends LibraryInstaller
{
$extra = $package->getExtra();
if (empty($extra['class'])) {
throw new \UnexpectedValueException('Error while installing '.$target->getPrettyName().', composer-installer packages should have a class defined in their extra key to be usable.');
throw new \UnexpectedValueException('Error while installing '.$package->getPrettyName().', composer-installer packages should have a class defined in their extra key to be usable.');
}
parent::install($package);