diff --git a/rules/CodeQuality/Rector/If_/CompleteMissingIfElseBracketRector.php b/rules/CodeQuality/Rector/If_/CompleteMissingIfElseBracketRector.php index d0918fc945a..b6429e0d503 100644 --- a/rules/CodeQuality/Rector/If_/CompleteMissingIfElseBracketRector.php +++ b/rules/CodeQuality/Rector/If_/CompleteMissingIfElseBracketRector.php @@ -89,6 +89,10 @@ CODE_SAMPLE // all good return \true; } + if (\is_array($nextToken) && \trim((string) $nextToken[1]) === '?>') { + // all good + return \true; + } } $startStmt = \current($if->stmts); return !$startStmt instanceof Stmt; diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index bd8e8741983..aa9e7998fc9 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 = '8f4ef6ce9b4b14a86f9a525f931ace6dd96e0e5f'; + public const PACKAGE_VERSION = '8179073d77b744e70404ec57a02ac730a877516a'; /** * @api * @var string */ - public const RELEASE_DATE = '2023-10-06 15:28:14'; + public const RELEASE_DATE = '2023-10-06 15:48:02'; /** * @var int */