Skip to content

Commit

Permalink
Update route group $callable parameter type
Browse files Browse the repository at this point in the history
Added @param callable|Closure $callable. This is important for advanced IDEs not to show warning error colouring when closure is used.
  • Loading branch information
ugokoli committed Oct 28, 2018
1 parent 6d34747 commit cc727df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Slim/App.php
Expand Up @@ -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
*/
Expand Down

0 comments on commit cc727df

Please sign in to comment.