Use read preference formats and strings consistently

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Minor - P4
    • 1.16.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      With PHPC-904, the constructor for MongoDB\Driver\ReadPreference started accepting strings like primary instead of the int constants that we pose in the class. Since then, we've sometimes used constants and sometimes strings in the library.

      As per this suggestion, we should use either strings or constants consistently throughout the code.

            Assignee:
            Jérôme Tamarelle
            Reporter:
            Andreas Braun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: