mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit 4283beff2f78d5820f27384826d5d1b75d3ff62a
4283beff2f
[CodeQuality] Skip method call on else on TernaryFalseExpressionToIfRector (#5373)
This commit is contained in:
parent
10fd8e5374
commit
40ac5bade5
|
@ -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)]]);
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue