Skip to content

Commit

Permalink
visual aid
Browse files Browse the repository at this point in the history
- group conditionals by wrapping with parentheses
  • Loading branch information
alcohol committed Dec 2, 2019
1 parent 37e4db2 commit 0747678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Constraint/Constraint.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public function matchSpecific(Constraint $provider, $compareBranches = false)
// '!=' operator is match when other operator is not '==' operator or version is not match
// these kinds of comparisons always have a solution
if ($isNonEqualOp || $isProviderNonEqualOp) {
return !$isEqualOp && !$isProviderEqualOp
return (!$isEqualOp && !$isProviderEqualOp)
|| $this->versionCompare($provider->version, $this->version, '!=', $compareBranches);
}

Expand Down

0 comments on commit 0747678

Please sign in to comment.