mount vars
- Dominant language
- PHP
- Stars
- 1.1k
- Forks
- 236
- PR merge metrics
- No merged PRs in 30d
Description
success:
```php
$router->mount('/video', function () use ($router) {
$router->get('/([\w_\d]+)', function ($id) {
echo 'video '.$id;
});
});
```
error:
```php
$router->mount('/video/([\w_\d]+)', function ($id) use ($router) {
$router->get('/', function () use ($id) {
echo 'video '.$id;
});
});
```
why ???
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the two PHP examples and trace the router's mount handling, focusing on how route variables are passed into the mounted callback. Compare the successful and failing forms to determine the expected behavior and verify that the resulting explanation or fix covers both cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100