Skip to content

Commit

Permalink
Updated Rector to commit 4283beff2f78d5820f27384826d5d1b75d3ff62a
Browse files Browse the repository at this point in the history
rectorphp/rector-src@4283bef [CodeQuality] Skip method call on else on TernaryFalseExpressionToIfRector (#5373)
  • Loading branch information
TomasVotruba committed Dec 18, 2023
1 parent 10fd8e5 commit 40ac5ba
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 @@ -70,7 +70,7 @@ public function refactorWithScope(Node $node, Scope $scope) : ?Node
if (!$ternary->if instanceof Expr) {
return null;
}
if ($this->sideEffectNodeDetector->detect($ternary->else, $scope)) {
if ($this->sideEffectNodeDetector->detect($ternary->else, $scope) || $this->sideEffectNodeDetector->detectCallExpr($ternary->else, $scope)) {
return null;
}
return new If_($ternary->cond, ['stmts' => [new Expression($ternary->if)]]);
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 = '02a30d483fe28abc9315a7e6bf809614750c95ab';
public const PACKAGE_VERSION = '4283beff2f78d5820f27384826d5d1b75d3ff62a';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-12-18 12:35:53';
public const RELEASE_DATE = '2023-12-18 19:30:04';
/**
* @var int
*/
Expand Down

0 comments on commit 40ac5ba

Please sign in to comment.