mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-13 22:52:23 +00:00
fc10fce13d
* re-enable rectify and ecs * [Rectify] [Php81] Enable Rectify on Readonly Property only * comment * [ci-review] Rector Rectify * [ci-review] Rector Rectify * [ci-review] Rector Rectify * [ci-review] Rector Rectify * [ci-review] Rector Rectify Co-authored-by: GitHub Action <action@github.com>
25 lines
657 B
PHP
25 lines
657 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Rector\BetterPhpDocParser\PhpDocNodeTraverser;
|
|
|
|
use Rector\BetterPhpDocParser\PhpDocNodeVisitor\ChangedPhpDocNodeVisitor;
|
|
use Symplify\SimplePhpDocParser\PhpDocNodeTraverser;
|
|
|
|
final class ChangedPhpDocNodeTraverserFactory
|
|
{
|
|
public function __construct(
|
|
private readonly ChangedPhpDocNodeVisitor $changedPhpDocNodeVisitor
|
|
) {
|
|
}
|
|
|
|
public function create(): PhpDocNodeTraverser
|
|
{
|
|
$changedPhpDocNodeTraverser = new PhpDocNodeTraverser();
|
|
$changedPhpDocNodeTraverser->addPhpDocNodeVisitor($this->changedPhpDocNodeVisitor);
|
|
|
|
return $changedPhpDocNodeTraverser;
|
|
}
|
|
}
|