diff --git a/tests/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRuleTest.php b/tests/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRuleTest.php index ae7cee1..b8c854d 100644 --- a/tests/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRuleTest.php +++ b/tests/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRuleTest.php @@ -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)); } public function testRule(): void