From 5d50bde7ed256a94e50e1466a105f8d53fc5ed3a Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Mon, 30 Sep 2024 21:49:16 +0200 Subject: [PATCH] Fix --- .../MatchingTypeInSwitchCaseConditionRuleTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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