Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-2227

Create psalm stubs for new BSON classes

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      The new BSON classes added in 1.16 aren't yet understood by psalm. The following classes need to be documented for psalm:

      • MongoDB\BSON\Document
      • MongoDB\BSON\Iterator
      • MongoDB\BSON\PackedArray

      To better handle the return type of methods accepting a $typeMap argument, consider creating stub classes instead of adding the methods to the class map (as was done in previous instances).

            Assignee:
            Unassigned Unassigned
            Reporter:
            andreas.braun@mongodb.com Andreas Braun
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: