-
Notifications
You must be signed in to change notification settings - Fork 791
Documentation updates for ext-mongodb 1.21 #4500
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
This was introduced in libmongocrypt with ext-mongodb 1.20 but was never documented. https://jira.mongodb.org/browse/PHPLIB-1375
b4b1e53
to
629a526
Compare
@@ -13,7 +13,7 @@ | |||
<modifier>final</modifier> <modifier>public</modifier> <type>MongoDB\Driver\Cursor</type><methodname>MongoDB\Driver\Server::executeCommand</methodname> | |||
<methodparam><type>string</type><parameter>db</parameter></methodparam> | |||
<methodparam><type>MongoDB\Driver\Command</type><parameter>command</parameter></methodparam> | |||
<methodparam choice="opt"><type class="union"><type>array</type><type>MongoDB\Driver\ReadPreference</type><type>null</type></type><parameter>options</parameter><initializer>&null;</initializer></methodparam> | |||
<methodparam choice="opt"><type class="union"><type>array</type><type>null</type></type><parameter>options</parameter><initializer>&null;</initializer></methodparam> |
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.
Maybe you should use the #[\Deprecated]
attribute for parameter to indicate it is deprecated?
@TimWolla is this supported by the engine btw?
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.
is this supported by the engine btw?
Yes, it's used for all deprecations in PHP core to provide the message: php/php-src#14750
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.
Oh, I misread: No, it's not supported for parameters.
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.
FWIW, we explicitly raise a deprecation notice in the 1.x branch: https://github.com/mongodb/mongo-php-driver/blob/v1.x/src/phongo_util.c#L95
https://jira.mongodb.org/browse/PHPLIB-1375 (missed for 1.20)
https://jira.mongodb.org/browse/PHPC-2518
https://jira.mongodb.org/browse/PHPC-2489