Skip to content

Commit 8d5a246

Browse files
committed
Updated Rector to commit 9dccc8a0efb26609bdc90e5e7b99dafb4e2fde78
rectorphp/rector-src@9dccc8a [CodeQuality] Handle with assign on SimplifyIfElseToTernaryRector (#7951)
1 parent d633182 commit 8d5a246

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

rules/CodeQuality/Rector/If_/SimplifyIfElseToTernaryRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function refactor(Node $node): ?Node
113113
if ($this->isNodeTooLong($assign)) {
114114
return null;
115115
}
116-
if ($ternary->cond instanceof BinaryOp) {
116+
if ($ternary->cond instanceof BinaryOp || $ternary->cond instanceof Assign) {
117117
$ternary->cond->setAttribute(AttributeKey::ORIGINAL_NODE, null);
118118
}
119119
$expression = new Expression($assign);

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 = '4fb2a68178f3bd7245dfc7a5ef3dfef8a2764f00';
22+
public const PACKAGE_VERSION = '9dccc8a0efb26609bdc90e5e7b99dafb4e2fde78';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2026-04-04 09:33:09';
27+
public const RELEASE_DATE = '2026-04-04 09:34:02';
2828
/**
2929
* @var int
3030
*/

0 commit comments

Comments
 (0)