From 46f2aa2353ee441d344a0e971aafaea14813a628 Mon Sep 17 00:00:00 2001 From: Gintautas Miselis Date: Fri, 21 Oct 2022 23:17:21 +0300 Subject: [PATCH] Undeprecate untyped method arguments in Cest format because there is no better way to support type union --- src/Codeception/Lib/Di.php | 4 ---- 1 file changed, 4 deletions(-) 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; }