Skip to content

Commit fc4206d

Browse files
Updates after PR review
1 parent 17c667b commit fc4206d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/PostRector/Rector/ClassRenamingPostRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class ClassRenamingPostRector extends AbstractPostRector
2626
/**
2727
* @var array<string, string>
2828
*/
29-
private array $oldToNewClasses;
29+
private array $oldToNewClasses = [];
3030

3131
public function __construct(
3232
private readonly ClassRenamer $classRenamer,
@@ -48,7 +48,7 @@ public function beforeTraverse(array $nodes): array
4848
return $nodes;
4949
}
5050

51-
public function enterNode(Node $node): Node|int|null
51+
public function enterNode(Node $node): ?Node
5252
{
5353
// no longer need post rename
5454
if (! $node instanceof Name) {

src/PostRector/Rector/NameImportingPostRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ final class NameImportingPostRector extends AbstractPostRector
2323
/**
2424
* @var array<Use_|GroupUse>
2525
*/
26-
private array $currentUses;
26+
private array $currentUses = [];
2727

2828
public function __construct(
2929
private readonly NameImporter $nameImporter,

0 commit comments

Comments
 (0)