-
Type: Bug
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: 1.15.0
-
Component/s: None
-
None
PHPC-1709 introduced a tentative array|object return type hint for Serializable::bsonSerialize(). In practice, PHPC only allows the method to return an array or stdClass instance (see: phongo_bson_encode.c).
If possible, we should consider narrowing this return type while it's still tentative.
This also came up in mongodb/mongo-php-library#1077 for PHPLIB-1122.
- is related to
-
PHPC-2139 Fully typed extension
- Canceled
-
PHPC-1709 PHPC typing improvements
- Development Complete
-
PHPLIB-1122 Support Document and PackedArray objects in public APIs
- Closed