Skip to content

Commit e8e1c7a

Browse files
authored
[Cleanup] Remove write-only CallLikeThisBoundClosureArgsNodeVisitor and its unread attribute (#8373)
1 parent e18cbc2 commit e8e1c7a

4 files changed

Lines changed: 0 additions & 147 deletions

File tree

‎src/DependencyInjection/LazyContainerFactory.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
use Rector\PhpParser\NodeVisitor\AssignedToNodeVisitor;
6565
use Rector\PhpParser\NodeVisitor\ByRefReturnNodeVisitor;
6666
use Rector\PhpParser\NodeVisitor\ByRefVariableNodeVisitor;
67-
use Rector\PhpParser\NodeVisitor\CallLikeThisBoundClosureArgsNodeVisitor;
6867
use Rector\PhpParser\NodeVisitor\ClassConstFetchNodeVisitor;
6968
use Rector\PhpParser\NodeVisitor\ClosureWithVariadicParametersNodeVisitor;
7069
use Rector\PhpParser\NodeVisitor\ContextNodeVisitor;
@@ -152,7 +151,6 @@ final class LazyContainerFactory
152151
PropertyOrClassConstDefaultNodeVisitor::class,
153152
ParamDefaultNodeVisitor::class,
154153
ClassConstFetchNodeVisitor::class,
155-
CallLikeThisBoundClosureArgsNodeVisitor::class,
156154
ArgNotAcceptingClosureNodeVisitor::class,
157155
];
158156

‎src/NodeAnalyzer/CallLikeExpectsThisBoundClosureArgsAnalyzer.php‎

Lines changed: 0 additions & 91 deletions
This file was deleted.

‎src/NodeTypeResolver/Node/AttributeKey.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,6 @@ final class AttributeKey
167167

168168
public const string PHP_VERSION_CONDITIONED = 'php_version_conditioned';
169169

170-
public const string IS_CLOSURE_USES_THIS = 'has_this_closure';
171-
172170
public const string HAS_CLOSURE_WITH_VARIADIC_ARGS = 'has_closure_with_variadic_args';
173171

174172
public const string IS_IN_TRY_BLOCK = 'is_in_try_block';

‎src/PhpParser/NodeVisitor/CallLikeThisBoundClosureArgsNodeVisitor.php‎

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)