Преглед на файлове

Fix strict comparison of the content hash

Zsolt Szeberenyi преди 9 години
родител
ревизия
62630e5c69
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/Composer/Package/Locker.php

+ 1 - 1
src/Composer/Package/Locker.php

@@ -89,7 +89,7 @@ class Locker
 
         if (!empty($lock['content-hash'])) {
             // There is a content hash key, use that instead of the file hash
-            return $this->contentHash == $lock['content-hash'];
+            return $this->contentHash === $lock['content-hash'];
         }
 
         return $this->hash === $lock['hash'];