mirror of
https://github.com/rectorphp/rector.git
synced 2025-05-04 15:08:05 +02:00
Updated Rector to commit 50496986f393c0ce7406301b7fe6887dfb7986f8
50496986f3
[Renaming] Fix space on union docblock during rename on RenameClassRector (#6463)
This commit is contained in:
parent
fe43132e50
commit
6ddb4992d1
@ -8,7 +8,7 @@ use Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType;
|
||||
final class UsedImports
|
||||
{
|
||||
/**
|
||||
* @var array<(FullyQualifiedObjectType | AliasedObjectType)>
|
||||
* @var array<FullyQualifiedObjectType|AliasedObjectType>
|
||||
* @readonly
|
||||
*/
|
||||
private array $useImports;
|
||||
|
@ -8,7 +8,7 @@ use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode;
|
||||
final class DataProviderNodes
|
||||
{
|
||||
/**
|
||||
* @var array<array-key, (Attribute | PhpDocTagNode)>
|
||||
* @var array<array-key, Attribute|PhpDocTagNode>
|
||||
* @readonly
|
||||
*/
|
||||
public array $nodes;
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '401210e8630b280a0c84c3de31115e0fe63ada81';
|
||||
public const PACKAGE_VERSION = '50496986f393c0ce7406301b7fe6887dfb7986f8';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-11-21 11:07:57';
|
||||
public const RELEASE_DATE = '2024-11-21 19:38:41';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
@ -39,7 +39,9 @@ final class UnionTypeNodePhpDocNodeVisitor extends AbstractPhpDocNodeVisitor imp
|
||||
}
|
||||
$startAndEnd = $this->resolveStardAndEnd($node);
|
||||
if (!$startAndEnd instanceof StartAndEnd) {
|
||||
return null;
|
||||
$firstKey = \array_key_first($node->types);
|
||||
$lastKey = \array_key_last($node->types);
|
||||
$startAndEnd = new StartAndEnd($node->types[$firstKey]->getAttribute('startIndex'), $node->types[$lastKey]->getAttribute('endIndex'));
|
||||
}
|
||||
$betterTokenProvider = $this->currentTokenIteratorProvider->provide();
|
||||
$isWrappedInCurlyBrackets = $this->isWrappedInCurlyBrackets($betterTokenProvider, $startAndEnd);
|
||||
|
@ -12,7 +12,7 @@ final class StmtsAndTokens
|
||||
*/
|
||||
private array $stmts;
|
||||
/**
|
||||
* @var array<int, (array{int, string, int} | string)>
|
||||
* @var array<int, array{int, string, int}|string>
|
||||
* @readonly
|
||||
*/
|
||||
private array $tokens;
|
||||
|
@ -11,12 +11,12 @@ final class ServiceArguments
|
||||
*/
|
||||
private string $className;
|
||||
/**
|
||||
* @var array<(string | int), (string | Expr)>
|
||||
* @var array<string|int, string|Expr>
|
||||
* @readonly
|
||||
*/
|
||||
private array $params;
|
||||
/**
|
||||
* @var array<(string | int), (string | Expr)>
|
||||
* @var array<string|int, string|Expr>
|
||||
* @readonly
|
||||
*/
|
||||
private array $envs;
|
||||
|
Loading…
x
Reference in New Issue
Block a user