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

Invalid Type Comparison on the Route-Identifier #97

Closed
wants to merge 2 commits into from
Closed

Invalid Type Comparison on the Route-Identifier #97

wants to merge 2 commits into from

Conversation

ndevr
Copy link

@ndevr ndevr commented Aug 13, 2013

Hey, the "getIdentifier" method at the ResourceController should be check the identifier with the "Not identical" Comparison Operator "if($id !== false)" - like the original zend method - because th identifier could be a string "0" and the method would return false.

fixed identifier check
@macnibblet
Copy link
Contributor

Please add test so we don't introduce a regression

@ndevr
Copy link
Author

ndevr commented Aug 15, 2013

It's enough?

weierophinney added a commit that referenced this pull request May 26, 2016
weierophinney added a commit that referenced this pull request May 26, 2016
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

Successfully merging this pull request may close these issues.

2 participants