From e208c9311872047b903511e2e03cb0df795014b0 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Mon, 30 Sep 2024 21:35:25 +0200 Subject: [PATCH] Fix after PHPStan update --- .../MatchingTypeInSwitchCaseConditionRule.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRule.php b/src/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRule.php index 3dd0f8b..ba7c92f 100644 --- a/src/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRule.php +++ b/src/Rules/SwitchConditions/MatchingTypeInSwitchCaseConditionRule.php @@ -4,8 +4,8 @@ use PhpParser\Node; use PhpParser\Node\Stmt\Switch_; -use PhpParser\PrettyPrinter\Standard; use PHPStan\Analyser\Scope; +use PHPStan\Node\Printer\Printer; use PHPStan\Rules\Rule; use PHPStan\Rules\RuleErrorBuilder; use PHPStan\Type\VerbosityLevel; @@ -17,9 +17,9 @@ class MatchingTypeInSwitchCaseConditionRule implements Rule { - private Standard $printer; + private Printer $printer; - public function __construct(Standard $printer) + public function __construct(Printer $printer) { $this->printer = $printer; }