Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Sep 30, 2024
1 parent 1721dbf commit 0368403
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace PHPStan\Rules\SwitchConditions;

use PhpParser\PrettyPrinter\Standard;
use PHPStan\Node\Printer\Printer;
use PHPStan\Rules\Rule;
use PHPStan\Testing\RuleTestCase;

Expand All @@ -14,7 +14,7 @@ class MatchingTypeInSwitchCaseConditionRuleTest extends RuleTestCase

protected function getRule(): Rule
{
return new MatchingTypeInSwitchCaseConditionRule(new Standard());
return new MatchingTypeInSwitchCaseConditionRule(new Printer());

Check failure on line 17 in tests/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRuleTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, lowest)

Creating new PHPStan\Node\Printer\Printer is not covered by backward compatibility promise. The class might change in a minor PHPStan version.

Check failure on line 17 in tests/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRuleTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, highest)

Creating new PHPStan\Node\Printer\Printer is not covered by backward compatibility promise. The class might change in a minor PHPStan version.

Check failure on line 17 in tests/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRuleTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, lowest)

Creating new PHPStan\Node\Printer\Printer is not covered by backward compatibility promise. The class might change in a minor PHPStan version.

Check failure on line 17 in tests/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRuleTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, highest)

Creating new PHPStan\Node\Printer\Printer is not covered by backward compatibility promise. The class might change in a minor PHPStan version.

Check failure on line 17 in tests/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRuleTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, lowest)

Creating new PHPStan\Node\Printer\Printer is not covered by backward compatibility promise. The class might change in a minor PHPStan version.

Check failure on line 17 in tests/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRuleTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, highest)

Creating new PHPStan\Node\Printer\Printer is not covered by backward compatibility promise. The class might change in a minor PHPStan version.

Check failure on line 17 in tests/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRuleTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, lowest)

Creating new PHPStan\Node\Printer\Printer is not covered by backward compatibility promise. The class might change in a minor PHPStan version.

Check failure on line 17 in tests/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRuleTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, highest)

Creating new PHPStan\Node\Printer\Printer is not covered by backward compatibility promise. The class might change in a minor PHPStan version.

Check failure on line 17 in tests/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRuleTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.3, lowest)

Creating new PHPStan\Node\Printer\Printer is not covered by backward compatibility promise. The class might change in a minor PHPStan version.

Check failure on line 17 in tests/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRuleTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.3, highest)

Creating new PHPStan\Node\Printer\Printer is not covered by backward compatibility promise. The class might change in a minor PHPStan version.

Check failure on line 17 in tests/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRuleTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.4, lowest)

Creating new PHPStan\Node\Printer\Printer is not covered by backward compatibility promise. The class might change in a minor PHPStan version.

Check failure on line 17 in tests/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRuleTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.4, highest)

Creating new PHPStan\Node\Printer\Printer is not covered by backward compatibility promise. The class might change in a minor PHPStan version.
}

public function testRule(): void
Expand Down

0 comments on commit 0368403

Please sign in to comment.