Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-1489

Deprecate using ReadPreference integer constants

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • 1.final
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      PHPC-1021 will remove the integer constants for read preferences in 2.0. Before we can remove them, they should be deprecated to allow users an easier upgrade.

      • Throw a deprecation notice (E_DEPRECATED) when using an integer value in ReadPreference::__construct
      • Deprecate ReadPreference::getMode as it returns integer constants

            Assignee:
            Unassigned Unassigned
            Reporter:
            andreas.braun@mongodb.com Andreas Braun
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: