|
@@ -212,7 +212,8 @@ |
|
|
block discarded – undo |
|
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())) |
Please login to merge, or discard this patch.