Utilize array_is_list() where we currently detect packed arrays

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor - P4
    • 1.16.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
            Jérôme Tamarelle
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: