Conditions | 2 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public function __invoke(Container $container, string $scriptDir): void |
||
20 | { |
||
21 | $container->map(static function (DependencyInterface $dependency) use ($scriptDir) { |
||
22 | if ($dependency instanceof NullObjectDependency) { |
||
23 | return $dependency->toNull($scriptDir); |
||
24 | } |
||
25 | |||
26 | return $dependency; |
||
27 | }); |
||
30 |