Fix phpstan
parent
d81298239b
commit
95e41ae61c
|
@ -309,6 +309,8 @@ abstract class Rule
|
||||||
|
|
||||||
$conflictTarget = $package1->getPrettyString();
|
$conflictTarget = $package1->getPrettyString();
|
||||||
if ($reasonData = $this->getReasonData()) {
|
if ($reasonData = $this->getReasonData()) {
|
||||||
|
assert($reasonData instanceof Link);
|
||||||
|
|
||||||
// swap literals if they are not in the right order with package2 being the conflicter
|
// swap literals if they are not in the right order with package2 being the conflicter
|
||||||
if ($reasonData->getSource() === $package1->getName()) {
|
if ($reasonData->getSource() === $package1->getName()) {
|
||||||
list($package2, $package1) = array($package1, $package2);
|
list($package2, $package1) = array($package1, $package2);
|
||||||
|
|
Loading…
Reference in New Issue