diff --git a/rules-tests/CodeQuality/Rector/LogicalAnd/LogicalToBooleanRector/Fixture/skip_fopen_or_die_in_assign.php.inc b/rules-tests/CodeQuality/Rector/LogicalAnd/LogicalToBooleanRector/Fixture/skip_fopen_or_die_in_assign.php.inc new file mode 100644 index 00000000000..8d5593def5e --- /dev/null +++ b/rules-tests/CodeQuality/Rector/LogicalAnd/LogicalToBooleanRector/Fixture/skip_fopen_or_die_in_assign.php.inc @@ -0,0 +1,13 @@ +nodeTypeResolver->getType($node->left); + + if (! $type->isBoolean()->yes()) { + return null; + } + return $this->refactorLogicalToBoolean($node); }