Updated Rector to commit b6deb2906c86fa45cf27a26d2cb21dd1fd55e238

b6deb2906c [CodeQuality] Skip indirect return on SimplifyIfReturnBoolRector (#6660)
This commit is contained in:
Tomas Votruba 2025-01-07 03:49:22 +00:00
parent 98031aa3cf
commit b47878ee33
2 changed files with 3 additions and 3 deletions

View File

@ -98,11 +98,11 @@ CODE_SAMPLE
if (!$innerIfInnerNode instanceof Expr) {
continue;
}
$if->cond->setAttribute(AttributeKey::ORIGINAL_NODE, null);
$newReturn = $this->resolveReturn($innerIfInnerNode, $if, $return);
if (!$newReturn instanceof Return_) {
continue;
}
$if->cond->setAttribute(AttributeKey::ORIGINAL_NODE, null);
$this->commentsMerger->keepComments($newReturn, [$if, $return, $ifInnerNode]);
// remove previous IF
unset($node->stmts[$key - 1]);

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'd01cdf411c072abfdacc464c9bf07a4521a8d40e';
public const PACKAGE_VERSION = 'b6deb2906c86fa45cf27a26d2cb21dd1fd55e238';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2025-01-07 02:35:47';
public const RELEASE_DATE = '2025-01-07 10:46:56';
/**
* @var int
*/