Karoly Negyesi преди 11 години
родител
ревизия
1a69d0a2a7
променени са 2 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 1 1
      src/Composer/Installer/LibraryInstaller.php
  2. 2 1
      tests/Composer/Test/Plugin/PluginInstallerTest.php

+ 1 - 1
src/Composer/Installer/LibraryInstaller.php

@@ -43,7 +43,7 @@ class LibraryInstaller implements InstallerInterface
      * @param string      $type
      * @param Filesystem  $filesystem
      */
-    public function __construct(IOInterface $io, Composer $composer, $type = 'library', $filesystem = null)
+    public function __construct(IOInterface $io, Composer $composer, $type = 'library', Filesystem $filesystem = null)
     {
         $this->composer = $composer;
         $this->downloadManager = $composer->getDownloadManager();

+ 2 - 1
tests/Composer/Test/Plugin/PluginInstallerTest.php

@@ -89,7 +89,8 @@ class PluginInstallerTest extends \PHPUnit_Framework_TestCase
         ));
     }
 
-    protected function tearDown() {
+    protected function tearDown()
+    {
         $filesystem = new Filesystem();
         $filesystem->removeDirectory($this->directory);
     }