Jelajahi Sumber

Fix feedback from 7222c1

Jordi Boggiano 13 tahun lalu
induk
melakukan
e90a8dc4c9
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  1. 1 2
      src/Composer/Autoload/AutoloadGenerator.php

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

@@ -31,7 +31,7 @@ class AutoloadGenerator
 <?php
 
 // autoload.php generated by Composer
-if (!class_exists('Composer\\Autoload\\ClassLoader')) {
+if (!class_exists('Composer\\Autoload\\ClassLoader', false)) {
     require __DIR__.'/ClassLoader.php';
 }
 
@@ -120,7 +120,6 @@ EOF;
 
         file_put_contents($targetDir.'/autoload.php', $autoloadFile);
         file_put_contents($targetDir.'/autoload_namespaces.php', $namespacesFile);
-        file_put_contents($targetDir.'/autoload_namespaces.php', $namespacesFile);
         copy(__DIR__.'/ClassLoader.php', $targetDir.'/ClassLoader.php');
     }