Simplify conditions
-if (! ($foo !== 'bar')) {...
+if ($foo === 'bar') {...
Configure your rector.php
:
<?php
use Rector\CodeQuality\Rector\Identical\SimplifyConditionsRector;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withRules([
SimplifyConditionsRector::class,
]);