Преглед изворни кода

minor fixes in DownloadManager.php

We should use "===" instead of "==" since it's better and faster in this case.
Ala Eddine Khefifi пре 10 година
родитељ
комит
7cea912d30
1 измењених фајлова са 1 додато и 1 уклоњено
  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;
                 }