Skip to content

Commit

Permalink
[CodeQuality] Skip fopen() or die() on LogicalToBooleanRector
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Dec 30, 2024
1 parent 8f5de06 commit 9cf83fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function getNodeTypes(): array
*/
public function refactor(Node $node): BooleanAnd|BooleanOr|null
{
$type = $this->nodeTypeResolver->getType($node->left);
$type = $this->nodeTypeResolver->getNativeType($node->left);

if (! $type->isBoolean()->yes()) {
return null;
Expand Down

0 comments on commit 9cf83fb

Please sign in to comment.