From 0d30bc469bf53c9d587d8ffbb38f0dc87a86c8ba Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Fri, 5 Aug 2011 04:11:00 -0400 Subject: [PATCH] In the default policy compare object ids to avoid recursion. --- src/Composer/DependencyResolver/DefaultPolicy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/DependencyResolver/DefaultPolicy.php b/src/Composer/DependencyResolver/DefaultPolicy.php index f931d9192..96f4feffe 100644 --- a/src/Composer/DependencyResolver/DefaultPolicy.php +++ b/src/Composer/DependencyResolver/DefaultPolicy.php @@ -45,7 +45,7 @@ class DefaultPolicy implements PolicyInterface continue; } - if ($candidate != $package) { + if ($candidate !== $package) { $packages[] = $candidate; } }