mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-16 21:08:19 +01:00
Updated Rector to commit 5ad54809ac3cac41862b13b786e13020861a6c01
5ad54809ac
[CodeQuality] Handle with assign missing parentheses on ExplicitBoolCompareRector (#6668)
This commit is contained in:
parent
db6f0447c8
commit
287ee5498b
@ -27,6 +27,7 @@ use PhpParser\Node\Stmt\Expression;
|
||||
use PhpParser\Node\Stmt\If_;
|
||||
use PHPStan\Type\MixedType;
|
||||
use PHPStan\Type\ObjectType;
|
||||
use Rector\NodeTypeResolver\Node\AttributeKey;
|
||||
use Rector\NodeTypeResolver\TypeAnalyzer\ArrayTypeAnalyzer;
|
||||
use Rector\NodeTypeResolver\TypeAnalyzer\StringTypeAnalyzer;
|
||||
use Rector\PhpParser\Node\Value\ValueResolver;
|
||||
@ -124,6 +125,9 @@ CODE_SAMPLE
|
||||
$node->cond = $binaryOp;
|
||||
return [$expression, $node];
|
||||
}
|
||||
if ($node->cond instanceof Assign) {
|
||||
$binaryOp->left->setAttribute(AttributeKey::WRAPPED_IN_PARENTHESES, \true);
|
||||
}
|
||||
$node->cond = $binaryOp;
|
||||
return $node;
|
||||
}
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '0a6eb1256c4d8943bd6241cc5eaedb2e3e04bc81';
|
||||
public const PACKAGE_VERSION = '5ad54809ac3cac41862b13b786e13020861a6c01';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2025-01-11 19:53:29';
|
||||
public const RELEASE_DATE = '2025-01-13 18:20:21';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user