mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-16 21:08:19 +01:00
Updated Rector to commit b6deb2906c86fa45cf27a26d2cb21dd1fd55e238
b6deb2906c
[CodeQuality] Skip indirect return on SimplifyIfReturnBoolRector (#6660)
This commit is contained in:
parent
98031aa3cf
commit
b47878ee33
@ -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]);
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user