From b9ce06f46bc2ee2d27a9ee9408d0bddcc7d649fd Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 11 Apr 2016 14:47:03 +0100 Subject: [PATCH] Minor tweaks, refs #5162 --- src/Composer/Autoload/AutoloadGenerator.php | 4 ++-- src/Composer/Command/SelfUpdateCommand.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Composer/Autoload/AutoloadGenerator.php b/src/Composer/Autoload/AutoloadGenerator.php index b5950d243..485183ac2 100644 --- a/src/Composer/Autoload/AutoloadGenerator.php +++ b/src/Composer/Autoload/AutoloadGenerator.php @@ -18,7 +18,7 @@ use Composer\Installer\InstallationManager; use Composer\IO\IOInterface; use Composer\Package\AliasPackage; use Composer\Package\PackageInterface; -use Composer\Repository\WritableRepositoryInterface; +use Composer\Repository\InstalledRepositoryInterface; use Composer\Util\Filesystem; use Composer\Script\ScriptEvents; @@ -85,7 +85,7 @@ class AutoloadGenerator $this->runScripts = (boolean) $runScripts; } - public function dump(Config $config, WritableRepositoryInterface $localRepo, PackageInterface $mainPackage, InstallationManager $installationManager, $targetDir, $scanPsr0Packages = false, $suffix = '') + public function dump(Config $config, InstalledRepositoryInterface $localRepo, PackageInterface $mainPackage, InstallationManager $installationManager, $targetDir, $scanPsr0Packages = false, $suffix = '') { if ($this->classMapAuthoritative) { // Force scanPsr0Packages when classmap is authoritative diff --git a/src/Composer/Command/SelfUpdateCommand.php b/src/Composer/Command/SelfUpdateCommand.php index 986b26662..2b3166e4b 100644 --- a/src/Composer/Command/SelfUpdateCommand.php +++ b/src/Composer/Command/SelfUpdateCommand.php @@ -305,7 +305,7 @@ TAGSPUBKEY * @param string $localFilename * @param string $newFilename * @param string $backupTarget - * @return \Exception|null + * @return \UnexpectedValueException|\PharException|null * @throws \Exception */ protected function setLocalPhar($localFilename, $newFilename, $backupTarget = null)