@@ -140,7 +140,7 @@ |
||
| 140 | 140 | public function generateExtendedInstance(Closure $instance, mixed $factory, Container $container): Closure |
| 141 | 141 | { |
| 142 | 142 | if (is_callable($factory)) { |
| 143 | - return static function (Container $c) use ($instance, $factory) { |
|
| 143 | + return static function(Container $c) use ($instance, $factory) { |
|
| 144 | 144 | $result = $factory($c); |
| 145 | 145 | |
| 146 | 146 | return $instance($result, $c) ?? $result; |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | * |
| 49 | 49 | * @return list<mixed> |
| 50 | 50 | */ |
| 51 | - public function resolveDependencies(string|Closure $toResolve): array |
|
| 51 | + public function resolveDependencies(string | Closure $toResolve): array |
|
| 52 | 52 | { |
| 53 | 53 | /** @var list<mixed> $dependencies */ |
| 54 | 54 | $dependencies = []; |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * |
| 69 | 69 | * @return list<ReflectionParameter> |
| 70 | 70 | */ |
| 71 | - private function getParametersToResolve(Closure|string $toResolve): array |
|
| 71 | + private function getParametersToResolve(Closure | string $toResolve): array |
|
| 72 | 72 | { |
| 73 | 73 | if (is_string($toResolve)) { |
| 74 | 74 | $constructor = $this->getConstructor($toResolve); |