From 528c5060e384fa91472ee2c91b8e73015f1f51f4 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Wed, 25 Dec 2024 00:41:11 +0700 Subject: [PATCH] fix --- .../Rector/BooleanAnd/BinaryOpNullableToInstanceofRector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/TypeDeclaration/Rector/BooleanAnd/BinaryOpNullableToInstanceofRector.php b/rules/TypeDeclaration/Rector/BooleanAnd/BinaryOpNullableToInstanceofRector.php index 78e5118db1..dd5acd9481 100644 --- a/rules/TypeDeclaration/Rector/BooleanAnd/BinaryOpNullableToInstanceofRector.php +++ b/rules/TypeDeclaration/Rector/BooleanAnd/BinaryOpNullableToInstanceofRector.php @@ -71,7 +71,7 @@ public function getNodeTypes(): array */ public function refactor(Node $node): ?Node { - if ($node->left instanceof Assign) { + if ($node->left instanceof Assign || $node->right instanceof Assign) { return null; }