Skip to content

Commit

Permalink
allow plugin to continue operating if assertions are configured to be…
Browse files Browse the repository at this point in the history
… non-fatal
  • Loading branch information
SignpostMarv committed Jan 12, 2020
1 parent 8e2be02 commit e6510aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hooks/TestCaseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,9 @@ function (
$potential_argument_type = $potential_argument_types[$param_offset];

assert(null !== $param->type);
if (is_null($param->type)) {
$param->type = Type::getMixed();
}
if ($param->is_variadic) {
$param_types = self::getAtomics($param->type);
$variadic_param_type = new Type\Union(array_values($param_types));
Expand Down

0 comments on commit e6510aa

Please sign in to comment.