From c02a263d0eeb8c9b9128056aa3c1339353f8a10d Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Fri, 6 Oct 2023 08:31:06 +0000 Subject: [PATCH] Updated Rector to commit 8f4ef6ce9b4b14a86f9a525f931ace6dd96e0e5f https://github.com/rectorphp/rector-src/commit/8f4ef6ce9b4b14a86f9a525f931ace6dd96e0e5f Clean up CompleteMissingIfElseBracketRector (#5131) --- .../Rector/If_/CompleteMissingIfElseBracketRector.php | 4 ---- src/Application/VersionResolver.php | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/rules/CodeQuality/Rector/If_/CompleteMissingIfElseBracketRector.php b/rules/CodeQuality/Rector/If_/CompleteMissingIfElseBracketRector.php index 74af51cd3e1..d0918fc945a 100644 --- a/rules/CodeQuality/Rector/If_/CompleteMissingIfElseBracketRector.php +++ b/rules/CodeQuality/Rector/If_/CompleteMissingIfElseBracketRector.php @@ -76,10 +76,6 @@ CODE_SAMPLE break; } if ($oldTokens[$i] !== ')' && !\is_array($oldTokens[$i + 1])) { - if ($oldTokens[$i] === ';') { - // all good - return \true; - } continue; } // first closing bracket must be followed by curly opening brackets diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 36e2f2b8e9d..bd8e8741983 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 = '3699f54c7ea5bc472818a9ce6d17ae95f5f0d59c'; + public const PACKAGE_VERSION = '8f4ef6ce9b4b14a86f9a525f931ace6dd96e0e5f'; /** * @api * @var string */ - public const RELEASE_DATE = '2023-10-06 15:18:47'; + public const RELEASE_DATE = '2023-10-06 15:28:14'; /** * @var int */