Skip to content

Commit 48c8a06

Browse files
committed
allow plugin to continue operating if assertions are configured to be non-fatal
1 parent 8e2be02 commit 48c8a06

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hooks/TestCaseHandler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,9 @@ function (
371371
$potential_argument_type = $potential_argument_types[$param_offset];
372372

373373
assert(null !== $param->type);
374+
if (is_null($param->type)) {
375+
$param->type = new Type\Union([Type::getMixed()]);
376+
}
374377
if ($param->is_variadic) {
375378
$param_types = self::getAtomics($param->type);
376379
$variadic_param_type = new Type\Union(array_values($param_types));

0 commit comments

Comments
 (0)