Skip to content
This repository was archived by the owner on Aug 17, 2025. It is now read-only.

Invalid Type Comparison on the Route-Identifier#97

Closed
ndevr wants to merge 2 commits into
phly:masterfrom
ndevr:master
Closed

Invalid Type Comparison on the Route-Identifier#97
ndevr wants to merge 2 commits into
phly:masterfrom
ndevr:master

Conversation

@ndevr
Copy link
Copy Markdown

@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
@awartoft
Copy link
Copy Markdown
Contributor

Please add test so we don't introduce a regression

@ndevr
Copy link
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants