@@ -22,12 +22,20 @@ public function configureContainer(ContainerInterface $container): void
2222 return ;
2323 }
2424
25+ /** @var array{services?: array<string, object>, invokables?: array<string, string>, factories?: array<string, string>, aliases?: array<string, string>, delegators?: array<string, array<int, string>>} */
2526 $ dependencies = $ this ->config ['dependencies ' ];
2627
28+ /** @var array<string, object> */
2729 $ services = $ dependencies ['services ' ] ?? [];
30+
31+ /** @var array<string, string> */
2832 $ invokables = $ dependencies ['invokables ' ] ?? [];
33+
34+ /** @var array<string, string> */
2935 $ factories = $ dependencies ['factories ' ] ?? [];
3036 $ aliases = $ this ->aliases ($ dependencies ['aliases ' ] ?? [], $ invokables );
37+
38+ /** @var array<string, array<int, string>> */
3139 $ delegators = $ dependencies ['delegators ' ] ?? [];
3240
3341 $ this ->addServices ($ container , $ services );
@@ -85,6 +93,8 @@ private function addFactories(ContainerInterface $container, array $factories):
8593 $ factory = new $ factory ();
8694 }
8795
96+ /** @var callable(ContainerInterface, string): mixed $factory */
97+
8898 return $ factory ($ psrContainer , $ name );
8999 });
90100 }
@@ -124,6 +134,8 @@ static function (ContainerInterface $psrContainer, callable $previous) use ($nam
124134 $ delegator = new $ delegator ();
125135 }
126136
137+ /** @var callable(ContainerInterface, string, callable): mixed $delegator */
138+
127139 return $ delegator ($ psrContainer , $ name , static fn () => $ previous ($ psrContainer ));
128140 }
129141 );
0 commit comments