Remove empty Table attribute on entities because it's useless
<?php
namespace RectorPrefix202411;
use RectorPrefix202411\Doctrine\ORM\Mapping as ORM;
-#[ORM\Table]
#[ORM\Entity]
class Product
{
}
\class_alias('Product', 'Product', \false);
Configure your rector.php
:
<?php
use Rector\Config\RectorConfig;
use Rector\Doctrine\CodeQuality\Rector\Class_\RemoveEmptyTableAttributeRector;
return RectorConfig::configure()
->withRules([
RemoveEmptyTableAttributeRector::class,
]);