CorrectDefaultTypesOnEntityPropertyRector

Change default value types to match Doctrine annotation type

 use Doctrine\ORM\Mapping as ORM;

 /**
  * @ORM\Entity()
  */
 class User
 {
     /**
      * @ORM\Column(name="is_old", type="boolean")
      */
-    private $isOld = '0';
+    private $isOld = false;
 }

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\Doctrine\CodeQuality\Rector\Property\CorrectDefaultTypesOnEntityPropertyRector;

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