Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Dec 24, 2024
1 parent 0314d96 commit 8ac12fd
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,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 @@ -70,6 +71,10 @@ public function getNodeTypes(): array
*/
public function refactor(Node $node): ?Node
{
if ($node->left instanceof Assign) {
return null;
}

if ($node instanceof BooleanOr) {
return $this->processNegationBooleanOr($node);
}
Expand Down

0 comments on commit 8ac12fd

Please sign in to comment.