Changes unneeded null check to ?? operator
-$value === null ? 10 : $value;
+$value ?? 10;
Configure your rector.php
:
<?php
use Rector\Config\RectorConfig;
use Rector\Php70\Rector\Ternary\TernaryToNullCoalescingRector;
return RectorConfig::configure()
->withRules([
TernaryToNullCoalescingRector::class,
]);