Skip to content

Commit 40ac5ba

Browse files
committed
Updated Rector to commit 4283beff2f78d5820f27384826d5d1b75d3ff62a
rectorphp/rector-src@4283bef [CodeQuality] Skip method call on else on TernaryFalseExpressionToIfRector (#5373)
1 parent 10fd8e5 commit 40ac5ba

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

rules/CodeQuality/Rector/Expression/TernaryFalseExpressionToIfRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function refactorWithScope(Node $node, Scope $scope) : ?Node
7070
if (!$ternary->if instanceof Expr) {
7171
return null;
7272
}
73-
if ($this->sideEffectNodeDetector->detect($ternary->else, $scope)) {
73+
if ($this->sideEffectNodeDetector->detect($ternary->else, $scope) || $this->sideEffectNodeDetector->detectCallExpr($ternary->else, $scope)) {
7474
return null;
7575
}
7676
return new If_($ternary->cond, ['stmts' => [new Expression($ternary->if)]]);

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = '02a30d483fe28abc9315a7e6bf809614750c95ab';
22+
public const PACKAGE_VERSION = '4283beff2f78d5820f27384826d5d1b75d3ff62a';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2023-12-18 12:35:53';
27+
public const RELEASE_DATE = '2023-12-18 19:30:04';
2828
/**
2929
* @var int
3030
*/

0 commit comments

Comments
 (0)