Skip to content

Commit

Permalink
[ci-review] Rector Rectify
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Feb 7, 2023
1 parent 04cfbc6 commit aa1c6f1
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

namespace Rector\Symfony\Rector\Closure;

use PhpParser\Node\Expr\BinaryOp\Concat;
use PhpParser\Node\Name;
use PhpParser\Node;
use PhpParser\Node\Arg;
use PhpParser\Node\Expr\BinaryOp\Concat;
use PhpParser\Node\Expr\ClassConstFetch;
use PhpParser\Node\Expr\Closure;
use PhpParser\Node\Expr\ConstFetch;
use PhpParser\Node\Expr\MethodCall;
use PhpParser\Node\Expr\Variable;
use PhpParser\Node\Name;
use PhpParser\Node\Scalar\String_;
use PhpParser\Node\Stmt\Expression;
use PHPStan\Reflection\ReflectionProvider;
Expand Down Expand Up @@ -100,7 +100,10 @@ public function refactor(Node $node): ?Node

$classNamesAndFilesPaths = $this->createClassNamesAndFilePaths($bareServicesSetMethodCalls);

$classNames = array_map(fn(ClassNameAndFilePath $classNameAndFilePath) => $classNameAndFilePath->getClassName(), $classNamesAndFilesPaths);
$classNames = array_map(
fn (ClassNameAndFilePath $classNameAndFilePath) => $classNameAndFilePath->getClassName(),
$classNamesAndFilesPaths
);

$sharedNamespace = $this->solver->solve(...$classNames);
if (! is_string($sharedNamespace)) {
Expand Down

0 comments on commit aa1c6f1

Please sign in to comment.