Skip to content

Commit ca0151c

Browse files
Fix cs
1 parent 81e96e5 commit ca0151c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/Rules/BooleansInConditions/BooleanInDoWhileConditionRule.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
namespace PHPStan\Rules\BooleansInConditions;
44

55
use PhpParser\Node;
6-
use PhpParser\Node\Stmt\Do_;
76
use PHPStan\Analyser\Scope;
87
use PHPStan\Rules\Rule;
98
use PHPStan\Rules\RuleErrorBuilder;
109
use PHPStan\Type\VerbosityLevel;
1110
use function sprintf;
1211

1312
/**
14-
* @implements Rule<Do_>
13+
* @implements Rule<Node\Stmt\Do_>
1514
*/
1615
class BooleanInDoWhileConditionRule implements Rule
1716
{
@@ -25,7 +24,7 @@ public function __construct(BooleanRuleHelper $helper)
2524

2625
public function getNodeType(): string
2726
{
28-
return Do_::class;
27+
return Node\Stmt\Do_::class;
2928
}
3029

3130
public function processNode(Node $node, Scope $scope): array

src/Rules/BooleansInConditions/BooleanInWhileConditionRule.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
namespace PHPStan\Rules\BooleansInConditions;
44

55
use PhpParser\Node;
6-
use PhpParser\Node\Stmt\While_;
76
use PHPStan\Analyser\Scope;
87
use PHPStan\Rules\Rule;
98
use PHPStan\Rules\RuleErrorBuilder;
109
use PHPStan\Type\VerbosityLevel;
1110
use function sprintf;
1211

1312
/**
14-
* @implements Rule<While_>
13+
* @implements Rule<Node\Stmt\While_>
1514
*/
1615
class BooleanInWhileConditionRule implements Rule
1716
{
@@ -25,7 +24,7 @@ public function __construct(BooleanRuleHelper $helper)
2524

2625
public function getNodeType(): string
2726
{
28-
return While_::class;
27+
return Node\Stmt\While_::class;
2928
}
3029

3130
public function processNode(Node $node, Scope $scope): array

0 commit comments

Comments
 (0)