Updated Rector to commit 4283beff2f78d5820f27384826d5d1b75d3ff62a

4283beff2f [CodeQuality] Skip method call on else on TernaryFalseExpressionToIfRector (#5373)
This commit is contained in:
Tomas Votruba 2023-12-18 12:32:23 +00:00
parent 10fd8e5374
commit 40ac5bade5
2 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ CODE_SAMPLE
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)]]);

View File

@ -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
*/