diff --git a/src/Codeception/Lib/Di.php b/src/Codeception/Lib/Di.php index 8cd2f2d462..5a6f6e370d 100644 --- a/src/Codeception/Lib/Di.php +++ b/src/Codeception/Lib/Di.php @@ -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; }