diff --git a/DependencyInjection/CompilerPass/ConfigureDependencyFactoryPass.php b/DependencyInjection/CompilerPass/ConfigureDependencyFactoryPass.php index 4605c35..5dcdc6b 100644 --- a/DependencyInjection/CompilerPass/ConfigureDependencyFactoryPass.php +++ b/DependencyInjection/CompilerPass/ConfigureDependencyFactoryPass.php @@ -78,9 +78,7 @@ public function process(ContainerBuilder $container): void private function validatePreferredConnection(ContainerBuilder $container, string $preferredConnection): void { - /** - * @var array $allowedConnections - */ + /** @var array $allowedConnections */ $allowedConnections = $container->getParameter('doctrine.connections'); if (! isset($allowedConnections[$preferredConnection])) { throw new InvalidArgumentException(sprintf( @@ -104,9 +102,7 @@ private function validatePreferredEm(ContainerBuilder $container, string $prefer )); } - /** - * @var array $allowedEms - */ + /** @var array $allowedEms */ $allowedEms = $container->getParameter('doctrine.entity_managers'); if (! isset($allowedEms[$preferredEm])) { throw new InvalidArgumentException(sprintf( diff --git a/Tests/DependencyInjection/DoctrineCommandsTest.php b/Tests/DependencyInjection/DoctrineCommandsTest.php index 23a3a44..a1113f2 100644 --- a/Tests/DependencyInjection/DoctrineCommandsTest.php +++ b/Tests/DependencyInjection/DoctrineCommandsTest.php @@ -68,9 +68,7 @@ public function getCommands(): array ]; } - /** - * @return MockObject|KernelInterface - */ + /** @return MockObject|KernelInterface */ private function getKernel(ContainerBuilder $container) { $kernel = $this->createMock(KernelInterface::class); diff --git a/composer.json b/composer.json index 8c80f4d..6cc5ba7 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ }, "require-dev": { "phpunit/phpunit": "^8.5|^9.5", - "doctrine/coding-standard": "^9", + "doctrine/coding-standard": "^12", "phpstan/phpstan": "^1.4", "phpstan/phpstan-deprecation-rules": "^1", "phpstan/phpstan-phpunit": "^1",