From 03684036b5be8ce41a628e84a11ba71ff1d795c5 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Mon, 30 Sep 2024 21:45:01 +0200 Subject: [PATCH] Fix --- .../MatchingTypeInSwitchCaseConditionRuleTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRuleTest.php b/tests/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRuleTest.php index 553cba5e..ae7cee17 100644 --- a/tests/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRuleTest.php +++ b/tests/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRuleTest.php @@ -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; @@ -14,7 +14,7 @@ class MatchingTypeInSwitchCaseConditionRuleTest extends RuleTestCase protected function getRule(): Rule { - return new MatchingTypeInSwitchCaseConditionRule(new Standard()); + return new MatchingTypeInSwitchCaseConditionRule(new Printer()); } public function testRule(): void