From cc727dff36bcdf730d97150da86fc6a885f124e4 Mon Sep 17 00:00:00 2001 From: Ugonna Okoli Date: Sun, 28 Oct 2018 07:08:29 +0100 Subject: [PATCH] Update route group $callable parameter type Added @param callable|Closure $callable. This is important for advanced IDEs not to show warning error colouring when closure is used. --- Slim/App.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Slim/App.php b/Slim/App.php index 7db72b758..8953b1f98 100644 --- a/Slim/App.php +++ b/Slim/App.php @@ -273,8 +273,8 @@ public function redirect($from, $to, $status = 302) * declarations in the callback will be prepended by the group(s) * that it is in. * - * @param string $pattern - * @param callable $callable + * @param string $pattern + * @param callable|Closure $callable * * @return RouteGroupInterface */