Skip to content

Commit

Permalink
Updated Rector to commit ed433a87a3e746547b2a22ece373a4bbebf5823d
Browse files Browse the repository at this point in the history
rectorphp/rector-src@ed433a8 [TypeDeclaration] Skip assign in if condition on BinaryOpNullableToInstanceofRector (#6629)
  • Loading branch information
TomasVotruba committed Dec 24, 2024
1 parent 573de34 commit 0c1978c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

use PhpParser\Node;
use PhpParser\Node\Expr;
use PhpParser\Node\Expr\Assign;
use PhpParser\Node\Expr\BinaryOp\BooleanAnd;
use PhpParser\Node\Expr\BinaryOp\BooleanOr;
use PhpParser\Node\Expr\BooleanNot;
Expand Down Expand Up @@ -64,6 +65,9 @@ public function getNodeTypes() : array
*/
public function refactor(Node $node) : ?Node
{
if ($node->left instanceof Assign || $node->right instanceof Assign) {
return null;
}
if ($node instanceof BooleanOr) {
return $this->processNegationBooleanOr($node);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '048b893960e3c4c8f31e907ec3af550726b52c11';
public const PACKAGE_VERSION = 'ed433a87a3e746547b2a22ece373a4bbebf5823d';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-12-25 00:30:44';
public const RELEASE_DATE = '2024-12-25 00:43:35';
/**
* @var int
*/
Expand Down

0 comments on commit 0c1978c

Please sign in to comment.