File tree Expand file tree Collapse file tree 9 files changed +16
-9
lines changed
src/NodeTypeResolver/PHPStan/Scope Expand file tree Collapse file tree 9 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 44
55namespace Rector \NodeTypeResolver \PHPStan \Scope \Contract \NodeVisitor ;
66
7- use JetBrains \PhpStorm \Deprecated ;
87use PhpParser \NodeVisitor ;
98
109/**
Original file line number Diff line number Diff line change 44
55namespace Rector \NodeTypeResolver \PHPStan \Scope \NodeVisitor ;
66
7+ use Rector \Contract \PhpParser \DecoratingNodeVisitorInterface ;
78use PhpParser \Node ;
89use PhpParser \Node \Arg ;
910use PhpParser \Node \Expr \Array_ ;
1314use PhpParser \NodeVisitorAbstract ;
1415use 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 {
Original file line number Diff line number Diff line change 44
55namespace Rector \NodeTypeResolver \PHPStan \Scope \NodeVisitor ;
66
7+ use Rector \Contract \PhpParser \DecoratingNodeVisitorInterface ;
78use PhpParser \Node ;
89use PhpParser \Node \ArrayItem ;
910use PhpParser \Node \Expr \Assign ;
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 {
Original file line number Diff line number Diff line change 44
55namespace Rector \NodeTypeResolver \PHPStan \Scope \NodeVisitor ;
66
7+ use Rector \Contract \PhpParser \DecoratingNodeVisitorInterface ;
78use PhpParser \Node ;
89use PhpParser \Node \FunctionLike ;
910use PhpParser \Node \Stmt \Class_ ;
1314use Rector \NodeTypeResolver \Node \AttributeKey ;
1415use 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
Original file line number Diff line number Diff line change 44
55namespace Rector \NodeTypeResolver \PHPStan \Scope \NodeVisitor ;
66
7+ use Rector \Contract \PhpParser \DecoratingNodeVisitorInterface ;
78use PhpParser \Node ;
89use PhpParser \Node \Expr ;
910use PhpParser \Node \Expr \AssignRef ;
1415use Rector \NodeTypeResolver \Node \AttributeKey ;
1516use 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
Original file line number Diff line number Diff line change 44
55namespace Rector \NodeTypeResolver \PHPStan \Scope \NodeVisitor ;
66
7+ use Rector \Contract \PhpParser \DecoratingNodeVisitorInterface ;
78use PhpParser \Node ;
89use PhpParser \Node \Arg ;
910use PhpParser \Node \Attribute ;
3738use Rector \NodeTypeResolver \Node \AttributeKey ;
3839use 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
Original file line number Diff line number Diff line change 44
55namespace Rector \NodeTypeResolver \PHPStan \Scope \NodeVisitor ;
66
7+ use Rector \Contract \PhpParser \DecoratingNodeVisitorInterface ;
78use PhpParser \Node ;
89use PhpParser \Node \Expr ;
910use PhpParser \Node \Expr \Variable ;
1617use Rector \NodeTypeResolver \Node \AttributeKey ;
1718use 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
Original file line number Diff line number Diff line change 44
55namespace Rector \NodeTypeResolver \PHPStan \Scope \NodeVisitor ;
66
7+ use Rector \Contract \PhpParser \DecoratingNodeVisitorInterface ;
78use PhpParser \Node ;
89use PhpParser \Node \Expr \ConstFetch ;
910use PhpParser \Node \Expr \FuncCall ;
1314use PhpParser \NodeVisitorAbstract ;
1415use 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 {
Original file line number Diff line number Diff line change 44
55namespace Rector \NodeTypeResolver \PHPStan \Scope \NodeVisitor ;
66
7+ use Rector \Contract \PhpParser \DecoratingNodeVisitorInterface ;
78use PhpParser \Node ;
89use PhpParser \Node \Expr ;
910use PhpParser \Node \Expr \Variable ;
1617use Rector \NodeTypeResolver \Node \AttributeKey ;
1718use 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
You can’t perform that action at this time.
0 commit comments