diff --git a/rules/CodeQuality/Rector/Expression/TernaryFalseExpressionToIfRector.php b/rules/CodeQuality/Rector/Expression/TernaryFalseExpressionToIfRector.php index 94322a243ab3..39a490cee5f4 100644 --- a/rules/CodeQuality/Rector/Expression/TernaryFalseExpressionToIfRector.php +++ b/rules/CodeQuality/Rector/Expression/TernaryFalseExpressionToIfRector.php @@ -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)]]); diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 5bc1a2cc97e2..ce74c4f04059 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -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 */