mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-03 09:50:49 +00:00
d56e7982d0
dedd4b55fe
make node_helper.php safe for similar names
18 lines
456 B
PHP
18 lines
456 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\BetterPhpDocParser\PhpDoc;
|
|
|
|
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode;
|
|
/**
|
|
* Useful for annotation class based annotation, e.g. @ORM\Entity to prevent space
|
|
* between the @ORM\Entity and (someContent)
|
|
*/
|
|
final class SpacelessPhpDocTagNode extends \PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode
|
|
{
|
|
public function __toString() : string
|
|
{
|
|
return $this->name . $this->value;
|
|
}
|
|
}
|