Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

4 changes: 0 additions & 4 deletions rules/Php81/Rector/Array_/ArrayToFirstClassCallableRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@ public function refactor(Node $node): StaticCall|MethodCall|null
return null;
}

if ($node->getAttribute(AttributeKey::IS_INSIDE_SYMFONY_PHP_CLOSURE)) {
return null;
}

if ($node->getAttribute(AttributeKey::IS_ARRAY_AS_STRING_CALLABLE)) {
return null;
}
Expand Down
2 changes: 0 additions & 2 deletions src/DependencyInjection/LazyContainerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@
use Rector\PhpParser\NodeVisitor\PhpVersionConditionNodeVisitor;
use Rector\PhpParser\NodeVisitor\PropertyOrClassConstDefaultNodeVisitor;
use Rector\PhpParser\NodeVisitor\StaticVariableNodeVisitor;
use Rector\PhpParser\NodeVisitor\SymfonyClosureNodeVisitor;
use Rector\PHPStanStaticTypeMapper\Contract\TypeMapperInterface;
use Rector\PHPStanStaticTypeMapper\PHPStanStaticTypeMapper;
use Rector\PHPStanStaticTypeMapper\TypeMapper\AccessoryArrayTypeMapper;
Expand Down Expand Up @@ -240,7 +239,6 @@ final class LazyContainerFactory
ClosureWithVariadicParametersNodeVisitor::class,
PhpVersionConditionNodeVisitor::class,
AssignedToNodeVisitor::class,
SymfonyClosureNodeVisitor::class,
ByRefReturnNodeVisitor::class,
ByRefVariableNodeVisitor::class,
ContextNodeVisitor::class,
Expand Down
2 changes: 0 additions & 2 deletions src/NodeTypeResolver/Node/AttributeKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ final class AttributeKey

public const string IS_CLASS_CONST_VALUE = 'is_default_class_const_value';

public const string IS_INSIDE_SYMFONY_PHP_CLOSURE = 'is_inside_symfony_php_closure';

/**
* Array callable kept as data, not converted to first class callable,
* e.g. 'callback'/'factory' keyed array item, or Definition::setFactory() argument
Expand Down
40 changes: 0 additions & 40 deletions src/PhpParser/NodeVisitor/SymfonyClosureNodeVisitor.php

This file was deleted.

Loading