Skip to content

Commit

Permalink
add negated fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jun 29, 2022
1 parent 2a07fa2 commit 079ed16
Showing 1 changed file with 29 additions and 0 deletions.
@@ -0,0 +1,29 @@
<?php

namespace Rector\Tests\CodeQuality\Rector\Expression\TernaryFalseExpressionToIfRector\Fixture;

final class NegatedValue
{
public function run($value)
{
! $value ? 'execute' : false;
}
}

?>
-----
<?php

namespace Rector\Tests\CodeQuality\Rector\Expression\TernaryFalseExpressionToIfRector\Fixture;

final class NegatedValue
{
public function run($value)
{
if (! $value) {
'execute';
}
}
}

?>

0 comments on commit 079ed16

Please sign in to comment.