Browse Source

Avoid failing if COMPOSER env var is empty, refs #1720

Jordi Boggiano 12 năm trước cách đây
mục cha
commit
a0a9536d90
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Composer/Factory.php

+ 1 - 1
src/Composer/Factory.php

@@ -118,7 +118,7 @@ class Factory
 
     public static function getComposerFile()
     {
-        return getenv('COMPOSER') ?: 'composer.json';
+        return trim(getenv('COMPOSER')) ?: 'composer.json';
     }
 
     public static function createAdditionalStyles()