Fix phpstan

main
Jordi Boggiano 2 years ago
parent d81298239b
commit 95e41ae61c
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -309,6 +309,8 @@ abstract class Rule
$conflictTarget = $package1->getPrettyString();
if ($reasonData = $this->getReasonData()) {
assert($reasonData instanceof Link);
// swap literals if they are not in the right order with package2 being the conflicter
if ($reasonData->getSource() === $package1->getName()) {
list($package2, $package1) = array($package1, $package2);

Loading…
Cancel
Save