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

Use read preference formats and strings consistently

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: