Updated Rector to commit 2c32ba3f9d21411ecffef51c6daa40dfc249c5bf

2c32ba3f9d Fix typo (#6544)
This commit is contained in:
Tomas Votruba 2024-12-11 11:20:20 +00:00
parent 07e5908c4a
commit ae027a1892
3 changed files with 5 additions and 5 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'f5c95f5f8d2476456409694aacad3ac1d78df3e1';
public const PACKAGE_VERSION = '2c32ba3f9d21411ecffef51c6daa40dfc249c5bf';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-12-11 18:15:48';
public const RELEASE_DATE = '2024-12-11 11:17:54';
/**
* @var int
*/

View File

@ -37,7 +37,7 @@ final class UnionTypeNodePhpDocNodeVisitor extends AbstractPhpDocNodeVisitor imp
if ($node instanceof BracketsAwareUnionTypeNode) {
return null;
}
$startAndEnd = $this->resolveStardAndEnd($node);
$startAndEnd = $this->resolveStartAndEnd($node);
if (!$startAndEnd instanceof StartAndEnd) {
$firstKey = \array_key_first($node->types);
$lastKey = \array_key_last($node->types);
@ -58,7 +58,7 @@ final class UnionTypeNodePhpDocNodeVisitor extends AbstractPhpDocNodeVisitor imp
// there is no + 1, as end is right at the next token
return $betterTokenProvider->isTokenTypeOnPosition(Lexer::TOKEN_CLOSE_PARENTHESES, $startAndEnd->getEnd());
}
private function resolveStardAndEnd(UnionTypeNode $unionTypeNode) : ?StartAndEnd
private function resolveStartAndEnd(UnionTypeNode $unionTypeNode) : ?StartAndEnd
{
$starAndEnd = $unionTypeNode->getAttribute(PhpDocAttributeKey::START_AND_END);
if ($starAndEnd instanceof StartAndEnd) {

View File

@ -4,8 +4,8 @@ declare (strict_types=1);
namespace Rector\Configuration;
use Rector\Contract\Rector\RectorInterface;
use Rector\Exception\Configuration\RectorRuleNotFoundException;
use Rector\Exception\Configuration\RectorRuleNameAmbigiousException;
use Rector\Exception\Configuration\RectorRuleNotFoundException;
/**
* @see \Rector\Tests\Configuration\OnlyRuleResolverTest
*/