Skip to content

Commit d2e844b

Browse files
authored
Doctrine CS 12 (#512)
1 parent 1ab208c commit d2e844b

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

DependencyInjection/CompilerPass/ConfigureDependencyFactoryPass.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ public function process(ContainerBuilder $container): void
7878

7979
private function validatePreferredConnection(ContainerBuilder $container, string $preferredConnection): void
8080
{
81-
/**
82-
* @var array<string, string> $allowedConnections
83-
*/
81+
/** @var array<string, string> $allowedConnections */
8482
$allowedConnections = $container->getParameter('doctrine.connections');
8583
if (! isset($allowedConnections[$preferredConnection])) {
8684
throw new InvalidArgumentException(sprintf(
@@ -104,9 +102,7 @@ private function validatePreferredEm(ContainerBuilder $container, string $prefer
104102
));
105103
}
106104

107-
/**
108-
* @var array<string, string> $allowedEms
109-
*/
105+
/** @var array<string, string> $allowedEms */
110106
$allowedEms = $container->getParameter('doctrine.entity_managers');
111107
if (! isset($allowedEms[$preferredEm])) {
112108
throw new InvalidArgumentException(sprintf(

Tests/DependencyInjection/DoctrineCommandsTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ public function getCommands(): array
6868
];
6969
}
7070

71-
/**
72-
* @return MockObject|KernelInterface
73-
*/
71+
/** @return MockObject|KernelInterface */
7472
private function getKernel(ContainerBuilder $container)
7573
{
7674
$kernel = $this->createMock(KernelInterface::class);

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"require-dev": {
2929
"phpunit/phpunit": "^8.5|^9.5",
30-
"doctrine/coding-standard": "^9",
30+
"doctrine/coding-standard": "^12",
3131
"phpstan/phpstan": "^1.4",
3232
"phpstan/phpstan-deprecation-rules": "^1",
3333
"phpstan/phpstan-phpunit": "^1",

0 commit comments

Comments
 (0)