Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-360

Make ChangeStream::CURSOR_NOT_FOUND class constant private

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 2.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      Any mention of the constant in our docs (e.g. API docs) should be removed

      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      N/A

      3. Which versions of the driver/connector does this apply to?
      2.0+

      Show
      1. What would you like to communicate to the user about this feature? Any mention of the constant in our docs (e.g. API docs) should be removed 2. Would you like the user to see examples of the syntax and/or executable code and its output? N/A 3. Which versions of the driver/connector does this apply to? 2.0+

      The ChangeStream::CURSOR_NOT_FOUND constant was introduced in d1cd6ef for PHPLIB-276 but it was only used for internal logic to determine whether an error was resumable.

      2a288a0 for PHPLIB-351 later deprecated the constant, and then 35c1ac2 for PHPLIB-566 later introduced a private static property for the constant.

      PHPLIB-1152 migrated private static to private const but was unable to do so for CURSOR_NOT_FOUND due to BC reasons. Therefore, this ticket will serve as a reminder to make it private in the next major version.

            Assignee:
            andreas.braun@mongodb.com Andreas Braun
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: