Completed
Pull Request — master (#12)
by Woody
01:27
created
src/Zend/Config.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
@@ -158,13 +158,13 @@  discard block
 block discarded – undo
158 158
      */
159 159
     private function makeLazyInvokable(string $name, $factory): callable
160 160
     {
161
-        return /** @return callable */ function () use ($name, $factory) {
161
+        return /** @return \Closure */ function () use ($name, $factory) {
162 162
             return $this->makeInvokable($name, $factory);
163 163
         };
164 164
     }
165 165
 
166 166
     /**
167
-     * @param mixed $factory
167
+     * @param callable $factory
168 168
      */
169 169
     private function isValidClass($factory): bool
170 170
     {
Please login to merge, or discard this patch.