IssetOnPropertyObjectToPropertyExistsRector

Change isset on property object to property_exists() and not null check

 class SomeClass
 {
     private $x;

     public function run(): void
     {
-        isset($this->x);
+        property_exists($this, 'x') && $this->x !== null;
     }
 }

Configure your rector.php:

<?php

use Rector\CodeQuality\Rector\Isset_\IssetOnPropertyObjectToPropertyExistsRector;
use Rector\Config\RectorConfig;

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