From 8b877eb068d3f021e43757bb6c2031a2bcb12a14 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Mon, 20 Jan 2020 10:27:04 +0100 Subject: [PATCH] Remove superfluous check in Problem --- src/Composer/DependencyResolver/Problem.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Composer/DependencyResolver/Problem.php b/src/Composer/DependencyResolver/Problem.php index 130681217..5291bdfaa 100644 --- a/src/Composer/DependencyResolver/Problem.php +++ b/src/Composer/DependencyResolver/Problem.php @@ -82,7 +82,6 @@ class Problem } $request = $rule->getReasonData(); - $packageName = $request['packageName']; $constraint = $request['constraint']; @@ -92,7 +91,7 @@ class Problem $packages = array(); } - if ($request && empty($packages)) { + if (empty($packages)) { // handle php/hhvm if ($packageName === 'php' || $packageName === 'php-64bit' || $packageName === 'hhvm') { $version = phpversion();