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).