mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-06 19:30:50 +00:00
e08ae92529
fb312e00c3
[PHPStanStaticTypeMapper] Avoid double \ prefix on IntersectionTypeMapper (#5656)
15 lines
337 B
PHP
15 lines
337 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace Rector\BetterPhpDocParser\ValueObject\Type;
|
|
|
|
use PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode;
|
|
use Stringable;
|
|
final class FullyQualifiedIdentifierTypeNode extends IdentifierTypeNode
|
|
{
|
|
public function __toString() : string
|
|
{
|
|
return '\\' . \ltrim($this->name, '\\');
|
|
}
|
|
}
|