Updated Rector to commit 048b893960e3c4c8f31e907ec3af550726b52c11

048b893960 [TypeDeclaration] Skip assign on while cond on WhileNullableToInstanceofRector (#6628)
This commit is contained in:
Tomas Votruba 2024-12-24 17:33:18 +00:00
parent b40bc10c7c
commit 573de34a8c
2 changed files with 6 additions and 2 deletions

View File

@ -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);
}

View File

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