You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return fn(#[Param] string $username)=>"this is $username's about page.";
return fn(string $username)=>"this is $username's about page.";
```
As you can see, this example is injecting a path parameter, that is because the infered path in this case is `/about/{username}`, which makes the parameter `#[Param] string $username` a valid injection.
As you can see, this example is injecting a path parameter, that is because the infered path in this case is `/about/{username}`, which contains the path parameter `username`.
> **Note** You can read more about path parameters [here](https://github.com/tncrazvan/catpaw-core/blob/master/docs/2.path-parameters.md).