Updated Rector to commit b29a6f80c319c6819007a604cc20b788e3abe59c

b29a6f80c3 [CodeQuality] Use its start token pos on Else_ on CompleteMissingIfElseBracketRector as no cond (#5136)
This commit is contained in:
Tomas Votruba 2023-10-06 21:59:20 +00:00
parent 16af101457
commit ba8a9c44c4
2 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ CODE_SAMPLE
}
$startTokenPos = $if->getStartTokenPos();
$i = $startStmt->getStartTokenPos() - 1;
$condEndTokenPos = $if instanceof Else_ ? 0 : $if->cond->getEndTokenPos();
$condEndTokenPos = $if instanceof Else_ ? $startTokenPos : $if->cond->getEndTokenPos();
while (isset($oldTokens[$i])) {
if ($i === $condEndTokenPos) {
return \false;

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '22bf404fbdc1fa1a01aa3075363b1a6d7414d171';
public const PACKAGE_VERSION = 'b29a6f80c319c6819007a604cc20b788e3abe59c';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-10-07 04:46:07';
public const RELEASE_DATE = '2023-10-07 04:55:21';
/**
* @var int
*/