Browse Source

Update AutoloadGenerator.php

This should fix an issue with this commit:
https://github.com/composer/composer/commit/87a42c2f01936e6fd8973fac159dc8117114bebc

This commit is causing a parse error in autoload_namespaces.php:
return array(
    'zsql' => 'phar://' . '$vendorDir . '/jbboehr/zsql/build/zsql.phar',

A similar problem happens when using autoload.files as well.
John Boehr 12 năm trước cách đây
mục cha
commit
caad88c047
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Composer/Autoload/AutoloadGenerator.php

+ 1 - 1
src/Composer/Autoload/AutoloadGenerator.php

@@ -320,7 +320,7 @@ EOF;
         }
 
         if (preg_match('/\.phar$/', $path)){
-            $baseDir = "'phar://' . '" . $baseDir;
+            $baseDir = "'phar://' . " . $baseDir;
         }
 
         return $baseDir.var_export($path, true);