Use common != instead of less known <> with same meaning
final class SomeClass
{
public function run($one, $two)
{
- return $one <> $two;
+ return $one != $two;
}
}
Configure your rector.php
:
<?php
use Rector\CodeQuality\Rector\NotEqual\CommonNotEqualRector;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withRules([
CommonNotEqualRector::class,
]);