function MultiConflictRule::equals
Checks if this rule is equal to another one
Ignores whether either of the rules is disabled.
Parameters
Rule $rule The rule to check against:
Return value
bool Whether the rules are equal
Overrides Rule::equals
File
-
vendor/
composer/ composer/ src/ Composer/ DependencyResolver/ MultiConflictRule.php, line 71
Class
- MultiConflictRule
- @author Nils Adermann <naderman@naderman.de>
Namespace
Composer\DependencyResolverCode
public function equals(Rule $rule) : bool {
if ($rule instanceof MultiConflictRule) {
return $this->literals === $rule->getLiterals();
}
return false;
}