Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[CodeQuality] Skip with HTML on TernaryFalseExpressionToIfRector
  • Loading branch information
samsonasik committed Apr 4, 2026
commit 636a63c03552e1060299519f0b67fababeaa4592
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php
# its a .phtml file
?>
<td<?php $this->call($a, 'v') ? ' class="x"' : '' ?>>
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use PhpParser\Node\Expr\Variable;
use PhpParser\Node\Stmt\Expression;
use PhpParser\Node\Stmt\If_;
use Rector\Contract\Rector\HTMLAverseRectorInterface;
use Rector\NodeAnalyzer\ExprAnalyzer;
use Rector\Rector\AbstractRector;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
Expand All @@ -18,7 +19,7 @@
/**
* @see \Rector\Tests\CodeQuality\Rector\Expression\TernaryFalseExpressionToIfRector\TernaryFalseExpressionToIfRectorTest
*/
final class TernaryFalseExpressionToIfRector extends AbstractRector
final class TernaryFalseExpressionToIfRector extends AbstractRector implements HTMLAverseRectorInterface
{
public function __construct(
private readonly ExprAnalyzer $exprAnalyzer
Expand Down
Loading