-
Type: Improvement
-
Resolution: Fixed
-
Priority: Trivial - P5
-
Affects Version/s: None
-
Component/s: None
-
None
The return value of the getInfo method for WriteConcernError and WriteError is documented as mixed (likely because it is stored internally as a zval); however, it is only ever initialized from a BSON document. Therefore, the return type can more correctly be stated as object|null.
This came up while investigating a PR comment for PHPC-1571.