Skip to content

Commit b6d87e0

Browse files
committed
array shape docblock
1 parent c859646 commit b6d87e0

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/Transformer/Doctrine.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,21 @@ public static function transform(ContainerInterface $container, array $configura
2020
{
2121
Assert::isInstanceOf($container, ServiceManager::class);
2222

23+
/** @var EntityManager $entityManager */
2324
$entityManager = $container->get(EntityManager::class);
2425
$doctrineDBALConnection = $entityManager->getConnection();
2526

27+
/**
28+
* @var array{
29+
* driverClass: string,
30+
* user: string,
31+
* password: string,
32+
* dbname: string,
33+
* host: string,
34+
* port: int|string,
35+
* driverOptions: array|null
36+
* } $params
37+
*/
2638
$params = $doctrineDBALConnection->getParams();
2739
$driverOptions = $params['driverOptions'] ?? [];
2840

src/Transformer/TransformerAbstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ abstract class TransformerAbstract
1515
private const DB = 'db';
1616

1717
/**
18-
* @return mixed[]
18+
* @return array{array{name: string, options: array}}
1919
*/
2020
private static function getWriterConfig(array $configuration): array
2121
{

0 commit comments

Comments
 (0)