mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-20 23:41:57 +02:00
Updated Rector to commit 048b893960e3c4c8f31e907ec3af550726b52c11
048b893960
[TypeDeclaration] Skip assign on while cond on WhileNullableToInstanceofRector (#6628)
This commit is contained in:
parent
b40bc10c7c
commit
573de34a8c
@ -5,6 +5,7 @@ namespace Rector\TypeDeclaration\Rector\While_;
|
||||
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Expr;
|
||||
use PhpParser\Node\Expr\Assign;
|
||||
use PhpParser\Node\Expr\BinaryOp\NotIdentical;
|
||||
use PhpParser\Node\Expr\Instanceof_;
|
||||
use PhpParser\Node\Name\FullyQualified;
|
||||
@ -73,6 +74,9 @@ CODE_SAMPLE
|
||||
*/
|
||||
public function refactor(Node $node) : ?Node
|
||||
{
|
||||
if ($node->cond instanceof Assign) {
|
||||
return null;
|
||||
}
|
||||
if ($node->cond instanceof NotIdentical) {
|
||||
return $this->refactorNotIdentical($node, $node->cond);
|
||||
}
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '22915933d05f2a3e38355cd150ec67401a0fe3b9';
|
||||
public const PACKAGE_VERSION = '048b893960e3c4c8f31e907ec3af550726b52c11';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-12-22 00:35:00';
|
||||
public const RELEASE_DATE = '2024-12-25 00:30:44';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user