diff --git a/composer.json b/composer.json index 9e0c50cb..6290600a 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "require-dev": { "doctrine/data-fixtures": "^1.0.0", "doctrine/doctrine-bundle": "^2.8", - "doctrine/orm": "^2.9 || ^3.0", + "doctrine/orm": "^2.9 || ^3.0.1", "doctrine/phpcr-bundle": "^3.0", "doctrine/phpcr-odm": "^2.0", "jackalope/jackalope-doctrine-dbal": "^2.0", diff --git a/src/CmfRoutingBundle.php b/src/CmfRoutingBundle.php index ebe8640f..f5e53259 100644 --- a/src/CmfRoutingBundle.php +++ b/src/CmfRoutingBundle.php @@ -63,6 +63,7 @@ private function buildPhpcrCompilerPass(ContainerBuilder $container): void $aliasMap = ['CmfRoutingBundle' => 'Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr']; } $container->addCompilerPass( + /* @phpstan-ignore arguments.count (support for doctrine/persistence 2) */ DoctrinePhpcrMappingsPass::createXmlMappingDriver( [ realpath(__DIR__.'/Resources/config/doctrine-model') => 'Symfony\Cmf\Bundle\RoutingBundle\Model', diff --git a/src/Doctrine/Phpcr/LocaleListener.php b/src/Doctrine/Phpcr/LocaleListener.php index b7a51ce4..4cb3fd62 100644 --- a/src/Doctrine/Phpcr/LocaleListener.php +++ b/src/Doctrine/Phpcr/LocaleListener.php @@ -70,7 +70,7 @@ public function __construct( PrefixCandidates $candidates, array $locales, bool $addLocalePattern = false, - bool $updateAvailableTranslations = false + bool $updateAvailableTranslations = false, ) { $this->candidates = $candidates; $this->locales = $locales; diff --git a/src/Doctrine/Phpcr/RouteProvider.php b/src/Doctrine/Phpcr/RouteProvider.php index e19099f7..6b4e851d 100644 --- a/src/Doctrine/Phpcr/RouteProvider.php +++ b/src/Doctrine/Phpcr/RouteProvider.php @@ -45,7 +45,7 @@ public function __construct( ManagerRegistry $managerRegistry, CandidatesInterface $candidatesStrategy, ?string $className = null, - ?LoggerInterface $logger = null + ?LoggerInterface $logger = null, ) { parent::__construct($managerRegistry, $className); $this->candidatesStrategy = $candidatesStrategy;