LogicalToBooleanRector

Change OR, AND to ||, && with more common understanding

-if ($f = false or true) {
+if (($f = false) || true) {
     return $f;
 }

Configure your rector.php:

<?php

use Rector\CodeQuality\Rector\LogicalAnd\LogicalToBooleanRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withRules([
        LogicalToBooleanRector::class,
    ]);
SETS:  Code Quality