@@ -212,7 +212,8 @@ |
||
212 | 212 | list($class, $param, $sub) = $pi; |
213 | 213 | |
214 | 214 | // First, loop through $args and see if each value can match the current parameter based on type hint |
215 | - if (!empty($args)) { // This if statement actually gives a ~10% speed increase when $args isn't set |
|
215 | + if (!empty($args)) { |
|
216 | +// This if statement actually gives a ~10% speed increase when $args isn't set |
|
216 | 217 | foreach ($args as $i => $arg) { |
217 | 218 | if ($class !== null |
218 | 219 | && ($arg instanceof $class || ($arg === null && $param->allowsNull())) |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | * |
159 | 159 | * @param string $name The name of the class to get the closure for |
160 | 160 | * @param array $rule The rule to base the instance on |
161 | - * @return callable A closure that will create the appropriate object when called |
|
161 | + * @return \Closure A closure that will create the appropriate object when called |
|
162 | 162 | */ |
163 | 163 | private function getClosure($name, array $rule, \ReflectionClass $class) |
164 | 164 | { |
@@ -205,9 +205,9 @@ discard block |
||
205 | 205 | /** |
206 | 206 | * Returns a closure that generates arguments for $method based on $rule and any $args passed into the closure |
207 | 207 | * |
208 | - * @param ReflectionMethod $method A reflection of the method to inspect |
|
208 | + * @param \ReflectionMethod $method A reflection of the method to inspect |
|
209 | 209 | * @param array $rule The ruleset to use in interpreting what the params should be |
210 | - * @return callable A closure that uses the cached information to generate the method's arguments |
|
210 | + * @return \Closure A closure that uses the cached information to generate the method's arguments |
|
211 | 211 | */ |
212 | 212 | private function getParams(\ReflectionMethod $method, array $rule) |
213 | 213 | { |