Collection::bulkWrite() does not validate hint for update and delete ops

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: 1.6.0, 1.7.0
    • Component/s: None
    • None
    • PHP Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      When the hint operation was introduced to update and delete operations in PHPLIB-491 and PHPLIB-539, respectively, type validation was never added to the BulkWrite class.

      An invalid type for hint will still be caught, since PHPLIB passes the options as-is to PHPC; however, the exception would be inconsistent with other operation-level options, such as collation.

              Assignee:
              Unassigned
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: