Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@uri /resource/:id/:childId are handled incorrectly #169

Open
andrew-makarenko opened this issue Aug 13, 2013 · 2 comments
Open

@uri /resource/:id/:childId are handled incorrectly #169

andrew-makarenko opened this issue Aug 13, 2013 · 2 comments

Comments

@andrew-makarenko
Copy link

resources @uri /resource/:id/:childId are handled incorrectly
Scenario:
I have a resource with:
@uri /resource/:id/:childId
And a handler
public function put( $id, $childId = '' ) {}
Do a request /resource/1/
Expected behavior:
Variables $id is equal to "1", variable $childId is equal to empty string ''

But the recent commit (4f6f9f0) break this, and we got these values:
$id = 1, $childId = 1.

andrew-makarenko added a commit to andrew-makarenko/tonic that referenced this issue Aug 13, 2013
@andrew-makarenko
Copy link
Author

Fix: #169

@dmitriy-poletayev
Copy link

Please, push this to branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants