mirror of
https://github.com/danog/psalm-plugin-phpunit.git
synced 2024-11-30 04:29:08 +01:00
Don’t crash when provider param type is null
This commit is contained in:
parent
c370c35cfe
commit
902dadb745
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user