@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | |
| 97 | 97 | private function makeDelegator(Injector $injector, string $name, callable $callback, array $delegators): callable |
| 98 | 98 | { |
| 99 | - return /** @return object */ function () use ($injector, $name, $callback, $delegators) { |
|
| 99 | + return /** @return \Closure */ function () use ($injector, $name, $callback, $delegators) { |
|
| 100 | 100 | foreach ($delegators as $delegator) { |
| 101 | 101 | $container = $injector->make(ContainerInterface::class); |
| 102 | 102 | $delegator = $this->makeInvokable($name, $delegator); |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | private function makeContainerGet(string $name): callable |
| 111 | 111 | { |
| 112 | - return /** @return object */ static function (ContainerInterface $container) use ($name) { |
|
| 112 | + return /** @return \Closure */ static function (ContainerInterface $container) use ($name) { |
|
| 113 | 113 | return $container->get($name); |
| 114 | 114 | }; |
| 115 | 115 | } |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | */ |
| 120 | 120 | private function makeFactory(Injector $injector, string $name, $factory): callable |
| 121 | 121 | { |
| 122 | - return /** @return object */ function () use ($injector, $name, $factory) { |
|
| 122 | + return /** @return \Closure */ function () use ($injector, $name, $factory) { |
|
| 123 | 123 | $container = $injector->make(ContainerInterface::class); |
| 124 | 124 | $factory = $this->makeInvokable($name, $factory); |
| 125 | 125 | return $factory($container, $name); |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | */ |
| 132 | 132 | private function makeIdentity($object): callable |
| 133 | 133 | { |
| 134 | - return /** @return object */ static function () use ($object) { |
|
| 134 | + return /** @return \Closure */ static function () use ($object) { |
|
| 135 | 135 | return $object; |
| 136 | 136 | }; |
| 137 | 137 | } |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | */ |
| 165 | 165 | private function makeLazyInvokable(string $name, $factory): callable |
| 166 | 166 | { |
| 167 | - return /** @return callable */ function () use ($name, $factory) { |
|
| 167 | + return /** @return \Closure */ function () use ($name, $factory) { |
|
| 168 | 168 | return $this->makeInvokable($name, $factory); |
| 169 | 169 | }; |
| 170 | 170 | } |