🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-15 05:20:50 | PHP 8.1.34
📂
/ (Root)
/
opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
src
/
BetterPhpDocParser
/
ValueObject
/
PhpDoc
📍 /opt/cpanel/ea-wappspector/vendor/rector/rector/src/BetterPhpDocParser/ValueObject/PhpDoc
🔄 Refresh
✏️
Editing: SpacingAwareTemplateTagValueNode.php
Read Only
<?php declare (strict_types=1); namespace Rector\BetterPhpDocParser\ValueObject\PhpDoc; use PHPStan\PhpDocParser\Ast\PhpDoc\TemplateTagValueNode; use PHPStan\PhpDocParser\Ast\Type\TypeNode; use Stringable; final class SpacingAwareTemplateTagValueNode extends TemplateTagValueNode { /** * @readonly * @var string */ private $preposition; public function __construct(string $name, ?TypeNode $typeNode, string $description, string $preposition) { $this->preposition = $preposition; parent::__construct($name, $typeNode, $description); } public function __toString() : string { // @see https://github.com/rectorphp/rector/issues/3438 # 'as'/'of' $bound = $this->bound instanceof TypeNode ? ' ' . $this->preposition . ' ' . $this->bound : ''; $content = $this->name . $bound . ' ' . $this->description; return \trim($content); } }
💾 Save Changes
❌ Cancel