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

Use read preference formats and strings consistently

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.16.0
    • Affects Version/s: None
    • Component/s: 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:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Reporter:
            andreas.braun@mongodb.com Andreas Braun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: