From 62630e5c69c3fcc10dc1b15c4222724caa76f1d1 Mon Sep 17 00:00:00 2001 From: Zsolt Szeberenyi Date: Fri, 21 Aug 2015 16:55:44 +1200 Subject: [PATCH] Fix strict comparison of the content hash --- src/Composer/Package/Locker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Package/Locker.php b/src/Composer/Package/Locker.php index 6b6d913ff..bbd45012d 100644 --- a/src/Composer/Package/Locker.php +++ b/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'];