From 902dadb745dd9afac4602e2fcc144c4513acd877 Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Mon, 25 Mar 2019 13:46:48 -0400 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20crash=20when=20provider=20param?= =?UTF-8?q?=20type=20is=20null?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hooks/TestCaseHandler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hooks/TestCaseHandler.php b/hooks/TestCaseHandler.php index 6a7057e..c0dd3e0 100644 --- a/hooks/TestCaseHandler.php +++ b/hooks/TestCaseHandler.php @@ -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 {