Skip to content

Commit 8622a86

Browse files
committed
Added todo to remove obsolete type check
1 parent fc4f83c commit 8622a86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/phongo_bson_encode.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ static void php_phongo_bson_append_object(bson_t* bson, php_phongo_field_path* f
131131
return;
132132
}
133133

134+
// TODO PHP_VERSION_ID < 80000: obsolete once the tentative return type of bsonSerialize() is enforced
134135
if (
135136
Z_TYPE(obj_data) != IS_ARRAY && !(Z_TYPE(obj_data) == IS_OBJECT && (instanceof_function(Z_OBJCE(obj_data), zend_standard_class_def) || instanceof_function(Z_OBJCE(obj_data), php_phongo_document_ce) || instanceof_function(Z_OBJCE(obj_data), php_phongo_packedarray_ce)))) {
136137
phongo_throw_exception(PHONGO_ERROR_UNEXPECTED_VALUE,

0 commit comments

Comments
 (0)