Skip to content

Commit 3ad86f0

Browse files
committed
[ci-review] Rector Rectify
1 parent 0527565 commit 3ad86f0

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

rules/CodingStyle/Rector/Encapsed/EncapsedStringsToSprintfRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ final class EncapsedStringsToSprintfRector extends AbstractRector implements Con
5151
private string $sprintfFormat = '';
5252

5353
/**
54-
* @var Expr[]
54+
* @var ConstFetch[]|Expr[]
5555
*/
5656
private array $argumentVariables = [];
5757

src/Configuration/RectorConfigBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ final class RectorConfigBuilder
5656
private const MAX_LEVEL_GAP = 10;
5757

5858
/**
59-
* @var string[]
59+
* @var string[]|bool[]
6060
*/
6161
private array $paths = [];
6262

@@ -71,7 +71,7 @@ final class RectorConfigBuilder
7171
private array $skip = [];
7272

7373
/**
74-
* @var array<class-string<RectorInterface>>
74+
* @var class-string<RectorInterface>[]
7575
*/
7676
private array $rules = [];
7777

@@ -166,7 +166,7 @@ final class RectorConfigBuilder
166166
private array $registerServices = [];
167167

168168
/**
169-
* @var array<SetGroup::*>
169+
* @var string[]
170170
*/
171171
private array $setGroups = [];
172172

src/PhpParser/Node/BetterNodeFinder.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Rector\PhpParser\Node;
66

7+
use PhpParser\Node\Stmt\ClassMethod;
78
use PhpParser\Node;
89
use PhpParser\Node\Expr\Variable;
910
use PhpParser\Node\Expr\Yield_;
@@ -239,7 +240,7 @@ public function findInstancesOfScoped(array $nodes, string|array $types): array
239240
$this->simpleCallableNodeTraverser->traverseNodesWithCallable(
240241
$nodes,
241242
static function (Node $subNode) use ($types, &$foundNodes): ?int {
242-
if ($subNode instanceof Class_ || ($subNode instanceof FunctionLike && ! $subNode instanceof Stmt\ClassMethod)) {
243+
if ($subNode instanceof Class_ || ($subNode instanceof FunctionLike && ! $subNode instanceof ClassMethod)) {
243244
return NodeVisitor::DONT_TRAVERSE_CURRENT_AND_CHILDREN;
244245
}
245246

src/PhpParser/NodeTraverser/AbstractImmutableNodeTraverser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
abstract class AbstractImmutableNodeTraverser implements NodeTraverserInterface
1616
{
1717
/**
18-
* @var list<NodeVisitor> Visitors
18+
* @var NodeVisitor[] Visitors
1919
*/
2020
protected array $visitors = [];
2121

0 commit comments

Comments
 (0)