🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-15 04:08:44 | PHP 8.1.34
📂
/ (Root)
/
opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
src
/
BetterPhpDocParser
/
PhpDocNodeVisitor
📍 /opt/cpanel/ea-wappspector/vendor/rector/rector/src/BetterPhpDocParser/PhpDocNodeVisitor
🔄 Refresh
✏️
Editing: IntersectionTypeNodePhpDocNodeVisitor.php
Read Only
<?php declare (strict_types=1); namespace Rector\BetterPhpDocParser\PhpDocNodeVisitor; use PHPStan\PhpDocParser\Ast\Node; use PHPStan\PhpDocParser\Ast\Type\IntersectionTypeNode; use Rector\BetterPhpDocParser\Attributes\AttributeMirrorer; use Rector\BetterPhpDocParser\Contract\BasePhpDocNodeVisitorInterface; use Rector\BetterPhpDocParser\ValueObject\Type\BracketsAwareIntersectionTypeNode; use Rector\PhpDocParser\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor; final class IntersectionTypeNodePhpDocNodeVisitor extends AbstractPhpDocNodeVisitor implements BasePhpDocNodeVisitorInterface { /** * @readonly * @var \Rector\BetterPhpDocParser\Attributes\AttributeMirrorer */ private $attributeMirrorer; public function __construct(AttributeMirrorer $attributeMirrorer) { $this->attributeMirrorer = $attributeMirrorer; } public function enterNode(Node $node) : ?Node { if (!$node instanceof IntersectionTypeNode) { return null; } if ($node instanceof BracketsAwareIntersectionTypeNode) { return null; } $bracketsAwareIntersectionTypeNode = new BracketsAwareIntersectionTypeNode($node->types); $this->attributeMirrorer->mirror($node, $bracketsAwareIntersectionTypeNode); return $bracketsAwareIntersectionTypeNode; } }
💾 Save Changes
❌ Cancel