Don’t crash when provider param type is null

This commit is contained in:
Matthew Brown 2019-03-25 13:46:48 -04:00 committed by GitHub
parent c370c35cfe
commit 902dadb745
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -289,7 +289,9 @@ class TestCaseHandler implements
// check that all of the required (?) params accept value type
$potential_argument_type = $dataset_type->type_params[1];
foreach ($method_storage->params as $param_offset => $param) {
assert(null !== $param->type);
if (!$param->type) {
continue;
}
$checkParam($potential_argument_type, $param->type, $param->is_optional, $param_offset);
}
} else {