diff --git a/composer-dependency-analyser.php b/composer-dependency-analyser.php index 99641e883..6cc280497 100644 --- a/composer-dependency-analyser.php +++ b/composer-dependency-analyser.php @@ -62,6 +62,9 @@ $config 'symfony/web-profiler-bundle', 'symfony/web-server-bundle', ], [ErrorType::DEV_DEPENDENCY_IN_PROD]) + ->ignoreErrorsOnPackages([ + 'gedmo/doctrine-extensions', + ], [ErrorType::SHADOW_DEPENDENCY]) ; return $config; diff --git a/rector.php b/rector.php index bf0b1b965..37bf69394 100644 --- a/rector.php +++ b/rector.php @@ -15,7 +15,7 @@ return RectorConfig::configure() ]) ->withRootFiles() ->withImportNames(importShortClasses: false) - ->withAttributesSets(symfony: true, doctrine: true) + ->withAttributesSets(symfony: true, doctrine: true, gedmo: true) ->withConfiguredRule(ClassPropertyAssignToConstructorPromotionRector::class, [ 'inline_public' => true, ]) diff --git a/src/Entity/Tag.php b/src/Entity/Tag.php index 0816a5633..e918e9ec5 100644 --- a/src/Entity/Tag.php +++ b/src/Entity/Tag.php @@ -41,9 +41,9 @@ class Tag implements \Stringable /** * @Expose - * @Gedmo\Slug(fields={"label"}, prefix="t:") */ #[ORM\Column(length: 128, unique: true)] + #[Gedmo\Slug(fields: ['label'], prefix: 't:')] private $slug; #[ORM\ManyToMany(targetEntity: Entry::class, mappedBy: 'tags', cascade: ['persist'])]