Browse Source

minor fixes in DownloadManager.php

We should use "===" instead of "==" since it's better and faster in this case.
Ala Eddine Khefifi 10 năm trước cách đây
mục cha
commit
7cea912d30
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/Composer/Downloader/DownloadManager.php

+ 1 - 1
src/Composer/Downloader/DownloadManager.php

@@ -202,7 +202,7 @@ class DownloadManager
                 }
                 break;
             } catch (\RuntimeException $e) {
-                if ($i == count($sources) - 1) {
+                if ($i === count($sources) - 1) {
                     throw $e;
                 }