Jordi Boggiano преди 12 години
родител
ревизия
935eaa9646
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/Composer/Installer/LibraryInstaller.php

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

@@ -226,7 +226,7 @@ class LibraryInstaller implements InstallerInterface
             $line = fgets($handle);
             fclose($handle);
             if (preg_match('{^#!/(?:usr/bin/env )?(?:[^/]+/)*(.+)$}m', $line, $match)) {
-                $caller = $match[1];
+                $caller = trim($match[1]);
             } else {
                 $caller = 'php';
             }