Make ChangeStream::CURSOR_NOT_FOUND class constant private

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: 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+
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: