mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-03 01:40:49 +00:00
7ec53f4a70
e6fd26353f
Get rid of in the (#3780)
27 lines
583 B
PHP
27 lines
583 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\NodeNameResolver\NodeNameResolver;
|
|
|
|
use PhpParser\Node;
|
|
use PhpParser\Node\Expr\Empty_;
|
|
use PHPStan\Analyser\Scope;
|
|
use Rector\NodeNameResolver\Contract\NodeNameResolverInterface;
|
|
/**
|
|
* @implements NodeNameResolverInterface<Empty_>
|
|
*/
|
|
final class EmptyNameResolver implements NodeNameResolverInterface
|
|
{
|
|
public function getNode() : string
|
|
{
|
|
return Empty_::class;
|
|
}
|
|
/**
|
|
* @param Empty_ $node
|
|
*/
|
|
public function resolve(Node $node, ?Scope $scope) : ?string
|
|
{
|
|
return 'empty';
|
|
}
|
|
}
|