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 846ba31
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions DependencyInjection/DoctrineExtension.php
Expand Up @@ -82,6 +82,12 @@
* DoctrineExtension is an extension for the Doctrine DBAL and ORM library.
*
* @final since 2.9
* @psalm-type DBALConfig = array{
* connections: array<string, array{logging: bool, profiling: bool, profiling_collect_backtrace: bool}>,
* driver_schemes: array<string, string>,
* default_connection: string,
* types: array<string, string>,
* }
*/
class DoctrineExtension extends AbstractDoctrineExtension
{
Expand Down Expand Up @@ -155,8 +161,8 @@ 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 DBALConfig $config An array of configuration settings
* @param ContainerBuilder $container A ContainerBuilder instance
*/
protected function dbalLoad(array $config, ContainerBuilder $container)
{
Expand All @@ -181,7 +187,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 846ba31

Please sign in to comment.