Skip to content

Commit

Permalink
Doctrine CS 12 (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Nov 12, 2023
1 parent 1ab208c commit d2e844b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ public function process(ContainerBuilder $container): void

private function validatePreferredConnection(ContainerBuilder $container, string $preferredConnection): void
{
/**
* @var array<string, string> $allowedConnections
*/
/** @var array<string, string> $allowedConnections */
$allowedConnections = $container->getParameter('doctrine.connections');
if (! isset($allowedConnections[$preferredConnection])) {
throw new InvalidArgumentException(sprintf(
Expand All @@ -104,9 +102,7 @@ private function validatePreferredEm(ContainerBuilder $container, string $prefer
));
}

/**
* @var array<string, string> $allowedEms
*/
/** @var array<string, string> $allowedEms */
$allowedEms = $container->getParameter('doctrine.entity_managers');
if (! isset($allowedEms[$preferredEm])) {
throw new InvalidArgumentException(sprintf(
Expand Down
4 changes: 1 addition & 3 deletions Tests/DependencyInjection/DoctrineCommandsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ public function getCommands(): array
];
}

/**
* @return MockObject|KernelInterface
*/
/** @return MockObject|KernelInterface */
private function getKernel(ContainerBuilder $container)
{
$kernel = $this->createMock(KernelInterface::class);
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d2e844b

Please sign in to comment.