-
Notifications
You must be signed in to change notification settings - Fork 208
PHPC-1925: Change ServerDescription::getType() to return a string #1249
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
Conversation
@@ -115,7 +125,7 @@ static PHP_METHOD(ServerDescription, getType) | |||
|
|||
PHONGO_PARSE_PARAMETERS_NONE(); | |||
|
|||
RETVAL_LONG(php_phongo_server_description_type(intern->server_description)); | |||
RETVAL_STRING(mongoc_server_description_type(intern->server_description)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be a good opportunity to revise serverDescription-getType-001.phpt
similar to what you did for the TopologyDescription::getType()
test.
Additionally, php_phongo_serverdescription_get_properties_hash
can be changed to output a "type" as a string instead of calling php_phongo_server_description_type
. Its test can also be revised to use %r
like the corresponding TopologyDescription tests.
According to CI, |
Yes sorry, I saw but didn't have time to finish yesterday |
No worries. I wasn't sure if you caught it since it was after the review was requested. |
https://jira.mongodb.org/browse/PHPC-1925