From ae027a189252eae887100d388c2a0892f97cbc43 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Wed, 11 Dec 2024 11:20:20 +0000 Subject: [PATCH] Updated Rector to commit 2c32ba3f9d21411ecffef51c6daa40dfc249c5bf https://github.com/rectorphp/rector-src/commit/2c32ba3f9d21411ecffef51c6daa40dfc249c5bf Fix typo (#6544) --- src/Application/VersionResolver.php | 4 ++-- .../PhpDocNodeVisitor/UnionTypeNodePhpDocNodeVisitor.php | 4 ++-- src/Configuration/OnlyRuleResolver.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 92b964ccac9..734bca9c50b 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -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 */ diff --git a/src/BetterPhpDocParser/PhpDocNodeVisitor/UnionTypeNodePhpDocNodeVisitor.php b/src/BetterPhpDocParser/PhpDocNodeVisitor/UnionTypeNodePhpDocNodeVisitor.php index f6bd40c6995..1b04a1523d1 100644 --- a/src/BetterPhpDocParser/PhpDocNodeVisitor/UnionTypeNodePhpDocNodeVisitor.php +++ b/src/BetterPhpDocParser/PhpDocNodeVisitor/UnionTypeNodePhpDocNodeVisitor.php @@ -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) { diff --git a/src/Configuration/OnlyRuleResolver.php b/src/Configuration/OnlyRuleResolver.php index c7e8ad16aa9..b75bf5d99a7 100644 --- a/src/Configuration/OnlyRuleResolver.php +++ b/src/Configuration/OnlyRuleResolver.php @@ -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 */