Total Complexity | 7 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class DbalUtils |
||
15 | { |
||
16 | /** |
||
17 | * If a parameter is an array (used in a "IN" statement), we need to tell Doctrine about it. |
||
18 | * If it is an integer we have to tell DBAL (default is string) |
||
19 | * @see https://www.doctrine-project.org/projects/doctrine-dbal/en/2.9/reference/data-retrieval-and-manipulation.html#list-of-parameters-conversion |
||
20 | * @param array<string, mixed> $parameters |
||
21 | * @return array<string, int> |
||
22 | */ |
||
23 | public static function generateTypes(array $parameters): array |
||
45 |