-
Type: Task
-
Resolution: Fixed
-
Priority: Minor - P4
-
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.
- depends on
-
PHPLIB-1141 Use rector for automatic refactor in CI and locally
- Closed
- is related to
-
PHPC-1021 Remove ReadPreference integer constants and require strings in constructor
- Closed