Change array_key_exists() on property to property_exists()
class SomeClass
{
public $value;
}
$someClass = new SomeClass;
-array_key_exists('value', $someClass);
+property_exists($someClass, 'value');
Configure your rector.php
:
<?php
use Rector\Config\RectorConfig;
use Rector\Php74\Rector\FuncCall\ArrayKeyExistsOnPropertyRector;
return RectorConfig::configure()
->withRules([
ArrayKeyExistsOnPropertyRector::class,
]);