Browse Source

Minor tweaks, refs #5162

Jordi Boggiano 9 years ago
parent
commit
b9ce06f46b

+ 2 - 2
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

+ 1 - 1
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)