Skip to content

Commit

Permalink
Updated Rector to commit b6deb2906c86fa45cf27a26d2cb21dd1fd55e238
Browse files Browse the repository at this point in the history
rectorphp/rector-src@b6deb29 [CodeQuality] Skip indirect return on SimplifyIfReturnBoolRector (#6660)
  • Loading branch information
TomasVotruba committed Jan 7, 2025
1 parent 98031aa commit b47878e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ public function refactor(Node $node) : ?Node
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]);
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit b47878e

Please sign in to comment.