Return Int64 instances when converting raw BSON objects to PHP values

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 1.16.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      For consistency with the behaviour of BSON\Document::get and BSON\PackedArray::get, the toPHP methods in both classes should not convert BSON long values to int scalars, but always return BSON\Int64 instances.

              Assignee:
              Andreas Braun
              Reporter:
              Andreas Braun
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: