@@ -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())) |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | * |
| 160 | 160 | * @param string $name The name of the class to get the closure for |
| 161 | 161 | * @param array $rule The rule to base the instance on |
| 162 | - * @return callable A closure that will create the appropriate object when called |
|
| 162 | + * @return \Closure A closure that will create the appropriate object when called |
|
| 163 | 163 | */ |
| 164 | 164 | private function getClosure($name, array $rule, \ReflectionClass $class) |
| 165 | 165 | { |
@@ -206,9 +206,9 @@ discard block |
||
| 206 | 206 | /** |
| 207 | 207 | * Returns a closure that generates arguments for $method based on $rule and any $args passed into the closure |
| 208 | 208 | * |
| 209 | - * @param ReflectionMethod $method A reflection of the method to inspect |
|
| 209 | + * @param \ReflectionMethod $method A reflection of the method to inspect |
|
| 210 | 210 | * @param array $rule The ruleset to use in interpreting what the params should be |
| 211 | - * @return callable A closure that uses the cached information to generate the method's arguments |
|
| 211 | + * @return \Closure A closure that uses the cached information to generate the method's arguments |
|
| 212 | 212 | */ |
| 213 | 213 | private function getParams(\ReflectionMethod $method, array $rule) |
| 214 | 214 | { |
@@ -335,6 +335,7 @@ discard block |
||
| 335 | 335 | |
| 336 | 336 | /** |
| 337 | 337 | * |
| 338 | + * @param string $name |
|
| 338 | 339 | */ |
| 339 | 340 | private static function normalizeName($name) |
| 340 | 341 | { |