Skip to content

Commit

Permalink
Remove psalm suppression according vimeo/psalm#10382
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrolucky committed Jan 28, 2024
1 parent 8a6ccdf commit e2d3431
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions DependencyInjection/DoctrineExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,13 @@ private function processConfigurationPrependingDefaults(ConfigurationInterface $
*
* <doctrine:dbal id="myconn" dbname="sfweb" user="root" />
*
* @param array<string, mixed> $config An array of configuration settings
* @param ContainerBuilder $container A ContainerBuilder instance
* @param array{

Check failure on line 158 in DependencyInjection/DoctrineExtension.php

View workflow job for this annotation

GitHub Actions / Coding Standards / Coding Standards (8.2)

Missing parameter name
* connections: array<string, array{logging: bool, profiling: bool, profiling_collect_backtrace: bool}>,
* driver_schemes: array<string, string>,
* default_connection: string,
* types: array<string, string>,
* } $config An array of configuration settings
* @param ContainerBuilder $container A ContainerBuilder instance
*/
protected function dbalLoad(array $config, ContainerBuilder $container)
{
Expand All @@ -181,7 +186,6 @@ protected function dbalLoad(array $config, ContainerBuilder $container)
$connections = [];

foreach (array_keys($config['connections']) as $name) {
/** @psalm-suppress InvalidArrayOffset https://github.com/vimeo/psalm/issues/10382 */
$connections[$name] = sprintf('doctrine.dbal.%s_connection', $name);
}

Expand Down

0 comments on commit e2d3431

Please sign in to comment.