@@ -243,7 +243,7 @@ |
||
| 243 | 243 | } |
| 244 | 244 | |
| 245 | 245 | //variadic functions will only have one argument. To account for those, append any remaining arguments to the list |
| 246 | - return array_merge($parameters, $args); |
|
| 246 | + return array_merge($parameters, $args); |
|
| 247 | 247 | }; |
| 248 | 248 | } |
| 249 | 249 | |
@@ -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())) |