Skip to content

Commit

Permalink
Merge pull request #6591 from Codeception/undeprecate-positional-cest…
Browse files Browse the repository at this point in the history
…-parameters

Undeprecate untyped method arguments in Cest format
  • Loading branch information
Naktibalda committed Oct 30, 2022
2 parents d2e403f + 46f2aa2 commit 5836574
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Codeception/Lib/Di.php
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 5836574

Please sign in to comment.