@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | private function makeDelegator(Injector $injector, string $name, callable $callback, array $delegators): callable |
| 98 | 98 | { |
| 99 | 99 | return |
| 100 | - /** @return object */ |
|
| 100 | + /** @return \Closure */ |
|
| 101 | 101 | function () use ($injector, $name, $callback, $delegators) { |
| 102 | 102 | foreach ($delegators as $delegator) { |
| 103 | 103 | $container = $injector->make(ContainerInterface::class); |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | private function makeContainerGet(string $name): callable |
| 113 | 113 | { |
| 114 | 114 | return |
| 115 | - /** @return object */ |
|
| 115 | + /** @return \Closure */ |
|
| 116 | 116 | static function (ContainerInterface $container) use ($name) { |
| 117 | 117 | return $container->get($name); |
| 118 | 118 | }; |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | private function makeFactory(Injector $injector, string $name, $factory): callable |
| 125 | 125 | { |
| 126 | 126 | return |
| 127 | - /** @return object */ |
|
| 127 | + /** @return \Closure */ |
|
| 128 | 128 | function () use ($injector, $name, $factory) { |
| 129 | 129 | $container = $injector->make(ContainerInterface::class); |
| 130 | 130 | $factory = $this->makeInvokable($name, $factory); |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | private function makeIdentity($object): callable |
| 139 | 139 | { |
| 140 | 140 | return |
| 141 | - /** @return object */ |
|
| 141 | + /** @return \Closure */ |
|
| 142 | 142 | static function () use ($object) { |
| 143 | 143 | return $object; |
| 144 | 144 | }; |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | private function makeLazyInvokable(string $name, $factory): callable |
| 174 | 174 | { |
| 175 | 175 | return |
| 176 | - /** @return callable */ |
|
| 176 | + /** @return \Closure */ |
|
| 177 | 177 | function () use ($name, $factory) { |
| 178 | 178 | return $this->makeInvokable($name, $factory); |
| 179 | 179 | }; |