Skip to content

PHPLIB-1152: replace private static with private const #1099

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

Merged
merged 4 commits into from
Jun 12, 2023

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Jun 9, 2023

Fix PHPLIB-1152

Client::$version is the only one left because it is initialised from composer install.

@GromNaN GromNaN requested review from jmikola and alcaeus June 9, 2023 14:09
@GromNaN GromNaN marked this pull request as ready for review June 9, 2023 14:13
Exception Client::$version which is initialized dynamically
@@ -42,15 +42,11 @@ class ChangeStream implements Iterator
{
/**
* @deprecated 1.4
* @todo Remove this in 2.0 (see: PHPLIB-360)
* @todo make this constant private in 2.0 (see: PHPLIB-360)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I understand why this was changed. You couldn't convert private static $cursorNotFound to a private const because of this existing definition.

I just revised PHPLIB-360 accordingly to capture this change.

Copy link
Member

@jmikola jmikola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once Delete::WIRE_VERSION_FOR_HINT is corrected.

GromNaN and others added 2 commits June 9, 2023 18:56
Copy link
Member

@alcaeus alcaeus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one!

@GromNaN GromNaN merged commit c0738eb into mongodb:master Jun 12, 2023
@GromNaN GromNaN deleted the PHPLIB-1152 branch June 12, 2023 08:24
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.

3 participants