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 0368403 commit 5d50bde
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class MatchingTypeInSwitchCaseConditionRuleTest extends RuleTestCase

protected function getRule(): Rule
{
return new MatchingTypeInSwitchCaseConditionRule(new Printer());
return new MatchingTypeInSwitchCaseConditionRule(self::getContainer()->getByType(Printer::class));

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

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, lowest)

Accessing PHPStan\Node\Printer\Printer::class 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)

Accessing PHPStan\Node\Printer\Printer::class 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)

Accessing PHPStan\Node\Printer\Printer::class 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)

Accessing PHPStan\Node\Printer\Printer::class 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)

Accessing PHPStan\Node\Printer\Printer::class 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)

Accessing PHPStan\Node\Printer\Printer::class 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)

Accessing PHPStan\Node\Printer\Printer::class 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)

Accessing PHPStan\Node\Printer\Printer::class 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)

Accessing PHPStan\Node\Printer\Printer::class 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)

Accessing PHPStan\Node\Printer\Printer::class 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)

Accessing PHPStan\Node\Printer\Printer::class 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)

Accessing PHPStan\Node\Printer\Printer::class 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 5d50bde

Please sign in to comment.