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

Utilize array_is_list() where we currently detect packed arrays

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

      We can utilize array_is_list() in various places throughout PHPLIB where we're currently validating arrays. This is likely not an exhaustive list, but for example:

      • MongoDB\is_pipeline() (used by Update and FindOneAndUpdate)
      • Aggregate validation of $pipeline parameter
      • BulkWrite validation of $operations parameter

      Note that we'll need to add a dependency for symfony/polyfill-php81 from the symfony/polyfill package.

            Assignee:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: