Skip to content

Commit cf0a830

Browse files
committed
[ci-review] Rector Rectify
1 parent f7df380 commit cf0a830

File tree

9 files changed

+16
-9
lines changed

9 files changed

+16
-9
lines changed

src/NodeTypeResolver/PHPStan/Scope/Contract/NodeVisitor/ScopeResolverNodeVisitorInterface.php

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

55
namespace Rector\NodeTypeResolver\PHPStan\Scope\Contract\NodeVisitor;
66

7-
use JetBrains\PhpStorm\Deprecated;
87
use PhpParser\NodeVisitor;
98

109
/**

src/NodeTypeResolver/PHPStan/Scope/NodeVisitor/ArgNodeVisitor.php

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

55
namespace Rector\NodeTypeResolver\PHPStan\Scope\NodeVisitor;
66

7+
use Rector\Contract\PhpParser\DecoratingNodeVisitorInterface;
78
use PhpParser\Node;
89
use PhpParser\Node\Arg;
910
use PhpParser\Node\Expr\Array_;
@@ -13,7 +14,7 @@
1314
use PhpParser\NodeVisitorAbstract;
1415
use Rector\NodeTypeResolver\Node\AttributeKey;
1516

16-
final class ArgNodeVisitor extends NodeVisitorAbstract implements \Rector\Contract\PhpParser\DecoratingNodeVisitorInterface
17+
final class ArgNodeVisitor extends NodeVisitorAbstract implements DecoratingNodeVisitorInterface
1718
{
1819
public function enterNode(Node $node): ?Node
1920
{

src/NodeTypeResolver/PHPStan/Scope/NodeVisitor/AssignedToNodeVisitor.php

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

55
namespace Rector\NodeTypeResolver\PHPStan\Scope\NodeVisitor;
66

7+
use Rector\Contract\PhpParser\DecoratingNodeVisitorInterface;
78
use PhpParser\Node;
89
use PhpParser\Node\ArrayItem;
910
use PhpParser\Node\Expr\Assign;
@@ -16,7 +17,7 @@
1617
/**
1718
* Inspired by https://github.com/phpstan/phpstan-src/blob/1.7.x/src/Parser/NewAssignedToPropertyVisitor.php
1819
*/
19-
final class AssignedToNodeVisitor extends NodeVisitorAbstract implements \Rector\Contract\PhpParser\DecoratingNodeVisitorInterface
20+
final class AssignedToNodeVisitor extends NodeVisitorAbstract implements DecoratingNodeVisitorInterface
2021
{
2122
public function enterNode(Node $node): ?Node
2223
{

src/NodeTypeResolver/PHPStan/Scope/NodeVisitor/ByRefReturnNodeVisitor.php

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

55
namespace Rector\NodeTypeResolver\PHPStan\Scope\NodeVisitor;
66

7+
use Rector\Contract\PhpParser\DecoratingNodeVisitorInterface;
78
use PhpParser\Node;
89
use PhpParser\Node\FunctionLike;
910
use PhpParser\Node\Stmt\Class_;
@@ -13,7 +14,7 @@
1314
use Rector\NodeTypeResolver\Node\AttributeKey;
1415
use Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser;
1516

16-
final class ByRefReturnNodeVisitor extends NodeVisitorAbstract implements \Rector\Contract\PhpParser\DecoratingNodeVisitorInterface
17+
final class ByRefReturnNodeVisitor extends NodeVisitorAbstract implements DecoratingNodeVisitorInterface
1718
{
1819
public function __construct(
1920
private readonly SimpleCallableNodeTraverser $simpleCallableNodeTraverser

src/NodeTypeResolver/PHPStan/Scope/NodeVisitor/ByRefVariableNodeVisitor.php

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

55
namespace Rector\NodeTypeResolver\PHPStan\Scope\NodeVisitor;
66

7+
use Rector\Contract\PhpParser\DecoratingNodeVisitorInterface;
78
use PhpParser\Node;
89
use PhpParser\Node\Expr;
910
use PhpParser\Node\Expr\AssignRef;
@@ -14,7 +15,7 @@
1415
use Rector\NodeTypeResolver\Node\AttributeKey;
1516
use Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser;
1617

17-
final class ByRefVariableNodeVisitor extends NodeVisitorAbstract implements \Rector\Contract\PhpParser\DecoratingNodeVisitorInterface
18+
final class ByRefVariableNodeVisitor extends NodeVisitorAbstract implements DecoratingNodeVisitorInterface
1819
{
1920
public function __construct(
2021
private readonly SimpleCallableNodeTraverser $simpleCallableNodeTraverser

src/NodeTypeResolver/PHPStan/Scope/NodeVisitor/ContextNodeVisitor.php

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

55
namespace Rector\NodeTypeResolver\PHPStan\Scope\NodeVisitor;
66

7+
use Rector\Contract\PhpParser\DecoratingNodeVisitorInterface;
78
use PhpParser\Node;
89
use PhpParser\Node\Arg;
910
use PhpParser\Node\Attribute;
@@ -37,7 +38,7 @@
3738
use Rector\NodeTypeResolver\Node\AttributeKey;
3839
use Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser;
3940

40-
final class ContextNodeVisitor extends NodeVisitorAbstract implements \Rector\Contract\PhpParser\DecoratingNodeVisitorInterface
41+
final class ContextNodeVisitor extends NodeVisitorAbstract implements DecoratingNodeVisitorInterface
4142
{
4243
public function __construct(
4344
private readonly SimpleCallableNodeTraverser $simpleCallableNodeTraverser

src/NodeTypeResolver/PHPStan/Scope/NodeVisitor/GlobalVariableNodeVisitor.php

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

55
namespace Rector\NodeTypeResolver\PHPStan\Scope\NodeVisitor;
66

7+
use Rector\Contract\PhpParser\DecoratingNodeVisitorInterface;
78
use PhpParser\Node;
89
use PhpParser\Node\Expr;
910
use PhpParser\Node\Expr\Variable;
@@ -16,7 +17,7 @@
1617
use Rector\NodeTypeResolver\Node\AttributeKey;
1718
use Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser;
1819

19-
final class GlobalVariableNodeVisitor extends NodeVisitorAbstract implements \Rector\Contract\PhpParser\DecoratingNodeVisitorInterface
20+
final class GlobalVariableNodeVisitor extends NodeVisitorAbstract implements DecoratingNodeVisitorInterface
2021
{
2122
public function __construct(
2223
private readonly SimpleCallableNodeTraverser $simpleCallableNodeTraverser

src/NodeTypeResolver/PHPStan/Scope/NodeVisitor/NameNodeVisitor.php

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

55
namespace Rector\NodeTypeResolver\PHPStan\Scope\NodeVisitor;
66

7+
use Rector\Contract\PhpParser\DecoratingNodeVisitorInterface;
78
use PhpParser\Node;
89
use PhpParser\Node\Expr\ConstFetch;
910
use PhpParser\Node\Expr\FuncCall;
@@ -13,7 +14,7 @@
1314
use PhpParser\NodeVisitorAbstract;
1415
use Rector\NodeTypeResolver\Node\AttributeKey;
1516

16-
final class NameNodeVisitor extends NodeVisitorAbstract implements \Rector\Contract\PhpParser\DecoratingNodeVisitorInterface
17+
final class NameNodeVisitor extends NodeVisitorAbstract implements DecoratingNodeVisitorInterface
1718
{
1819
public function enterNode(Node $node): ?Node
1920
{

src/NodeTypeResolver/PHPStan/Scope/NodeVisitor/StaticVariableNodeVisitor.php

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

55
namespace Rector\NodeTypeResolver\PHPStan\Scope\NodeVisitor;
66

7+
use Rector\Contract\PhpParser\DecoratingNodeVisitorInterface;
78
use PhpParser\Node;
89
use PhpParser\Node\Expr;
910
use PhpParser\Node\Expr\Variable;
@@ -16,7 +17,7 @@
1617
use Rector\NodeTypeResolver\Node\AttributeKey;
1718
use Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser;
1819

19-
final class StaticVariableNodeVisitor extends NodeVisitorAbstract implements \Rector\Contract\PhpParser\DecoratingNodeVisitorInterface
20+
final class StaticVariableNodeVisitor extends NodeVisitorAbstract implements DecoratingNodeVisitorInterface
2021
{
2122
public function __construct(
2223
private readonly SimpleCallableNodeTraverser $simpleCallableNodeTraverser

0 commit comments

Comments
 (0)