Skip to content

Conversation

@jmikola
Copy link
Member

@jmikola jmikola commented Feb 26, 2025

@jmikola jmikola requested review from GromNaN and alcaeus February 26, 2025 20:50
@jmikola jmikola merged commit 51ea49d into php:master Feb 27, 2025
2 checks passed
@jmikola jmikola deleted the mongodb-1.21 branch February 27, 2025 15:24
<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>
Copy link
Member

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?

Copy link
Member

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

Copy link
Member

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.

Copy link
Member Author

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

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.

4 participants