File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -86,9 +86,9 @@ public function __toString(): string
86
86
* @see \MongoDB\Collection::createIndexes()
87
87
* @see https://php.net/mongodb-bson-serializable.bsonserialize
88
88
*/
89
- public function bsonSerialize (): array
89
+ public function bsonSerialize (): object
90
90
{
91
- return $ this ->index ;
91
+ return ( object ) $ this ->index ;
92
92
}
93
93
94
94
/**
Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ public function __construct(array $index)
67
67
* @see \MongoDB\Collection::createSearchIndexes()
68
68
* @see https://php.net/mongodb-bson-serializable.bsonserialize
69
69
*/
70
- public function bsonSerialize (): array
70
+ public function bsonSerialize (): object
71
71
{
72
- return $ this ->index ;
72
+ return ( object ) $ this ->index ;
73
73
}
74
74
}
You can’t perform that action at this time.
0 commit comments