Skip to content

Commit

Permalink
Undeprecate untyped method arguments in Cest format
Browse files Browse the repository at this point in the history
because there is no better way to support type union
  • Loading branch information
Naktibalda committed Oct 21, 2022
1 parent 700288e commit 46f2aa2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Codeception/Lib/Di.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,6 @@ protected function prepareArgs(ReflectionMethod $method, array $defaults = []):
if (!isset($defaults[$k])) {
throw new InjectionException("Parameter '{$parameter->name}' must have default value.");
}
Notification::deprecate(
'Untyped method arguments in Cest format are deprecated since Codeception 5.0.0 and will be removed in 6.0.0',
$method->getFileName() . ':' . $method->getStartLine(),
);
$args[] = $defaults[$k];
continue;
}
Expand Down

0 comments on commit 46f2aa2

Please sign in to comment.