Jordi Boggiano 12 anni fa
parent
commit
87a42c2f01
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/Composer/Autoload/AutoloadGenerator.php

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

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