Skip to content

Commit 5d50bde

Browse files
committed
Fix
1 parent 0368403 commit 5d50bde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRuleTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class MatchingTypeInSwitchCaseConditionRuleTest extends RuleTestCase
1414

1515
protected function getRule(): Rule
1616
{
17-
return new MatchingTypeInSwitchCaseConditionRule(new Printer());
17+
return new MatchingTypeInSwitchCaseConditionRule(self::getContainer()->getByType(Printer::class));
1818
}
1919

2020
public function testRule(): void

0 commit comments

Comments
 (0)