From 688ecbe08857b72efe78d7ee30b999b6bcdaf526 Mon Sep 17 00:00:00 2001 From: Razvan Date: Fri, 25 Aug 2023 22:13:50 +0200 Subject: [PATCH] Update 2.path-parameters.md --- docs/2.path-parameters.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/2.path-parameters.md b/docs/2.path-parameters.md index bf5e0059..76cb47f2 100755 --- a/docs/2.path-parameters.md +++ b/docs/2.path-parameters.md @@ -61,8 +61,8 @@ As long as you wrap it with braces (`{}`) your parameters will be injectable. ```php $server->router->get("/account/{username}@{page}",function( - #[Param] string $username, - #[Param] string $page + string $username, + string $page, ){ return "hello $username, you are looking at page $page."; });