Configurable
UseEntityTypeHasIntegerIdRector
Replace deprecated entity-type integer-ID helper methods with EntityTypeInterface::hasIntegerId() (drupal:11.4.0)
-$this->getEntityTypeIdKeyType($entity_type) === 'integer'
+$entity_type->hasIntegerId()
Configure your rector.php:
<?php
use DrupalRector\Drupal11\Rector\Deprecation\UseEntityTypeHasIntegerIdRector;
use DrupalRector\Rector\ValueObject\DrupalIntroducedVersionConfiguration;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withConfiguredRule(UseEntityTypeHasIntegerIdRector::class, [
new DrupalIntroducedVersionConfiguration('11.4.0'),
]);