Skip to content

Commit a53932b

Browse files
authored
Let PHPStan check array and iterable types & generics (#27)
1 parent 56b3191 commit a53932b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/DependencyInjection/YokaiBatchExtension.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ final class YokaiBatchExtension extends Extension
2424
{
2525
/**
2626
* @inheritDoc
27+
* @phpstan-param list<array<string, mixed>> $configs
2728
*/
2829
public function load(array $configs, ContainerBuilder $container): void
2930
{
@@ -79,6 +80,9 @@ private function getLoader(ContainerBuilder $container): ConfigLoader\LoaderInte
7980
return new ConfigLoader\DelegatingLoader($resolver);
8081
}
8182

83+
/**
84+
* @param array<string, mixed> $config
85+
*/
8286
private function configureStorage(ContainerBuilder $container, array $config): void
8387
{
8488
if (isset($config['service'])) {

0 commit comments

Comments
 (0)