diff options
Diffstat (limited to 'composer/Plugin/RecipeUnpack')
-rw-r--r-- | composer/Plugin/RecipeUnpack/Plugin.php | 4 | ||||
-rw-r--r-- | composer/Plugin/RecipeUnpack/UnpackCommand.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/composer/Plugin/RecipeUnpack/Plugin.php b/composer/Plugin/RecipeUnpack/Plugin.php index e3738aeae2c4..fe294ecb8b78 100644 --- a/composer/Plugin/RecipeUnpack/Plugin.php +++ b/composer/Plugin/RecipeUnpack/Plugin.php @@ -7,7 +7,7 @@ use Composer\Composer; use Composer\EventDispatcher\EventSubscriberInterface; use Composer\Installer; use Composer\IO\IOInterface; -use Composer\Package\Package; +use Composer\Package\PackageInterface; use Composer\Plugin\Capability\CommandProvider; use Composer\Plugin\Capable; use Composer\Plugin\PluginInterface; @@ -107,7 +107,7 @@ final class Plugin implements PluginInterface, EventSubscriberInterface, Capable $packages = $composer->getRepositoryManager()->getLocalRepository()->findPackages($package_name); $package = reset($packages); - if (!$package instanceof Package) { + if (!$package instanceof PackageInterface) { if (!$isInstalling) { $event->getIO()->write('Recipes are not unpacked when the --no-install option is used.', verbosity: IOInterface::VERBOSE); return; diff --git a/composer/Plugin/RecipeUnpack/UnpackCommand.php b/composer/Plugin/RecipeUnpack/UnpackCommand.php index be87544677c7..60bd86f08c17 100644 --- a/composer/Plugin/RecipeUnpack/UnpackCommand.php +++ b/composer/Plugin/RecipeUnpack/UnpackCommand.php @@ -3,7 +3,7 @@ namespace Drupal\Composer\Plugin\RecipeUnpack; use Composer\Command\BaseCommand; -use Composer\Package\Package; +use Composer\Package\PackageInterface; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; @@ -75,7 +75,7 @@ EOT $packages = $local_repo->findPackages($package_name); $package = reset($packages); - if (!$package instanceof Package) { + if (!$package instanceof PackageInterface) { $io->error(sprintf('<info>%s</info> does not resolve to a package.', $package_name)); return 1; } |