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 @@ -88,9 +88,9 @@ public function __toString(): string
88
88
* @see \MongoDB\Collection::createIndexes()
89
89
* @see https://php.net/mongodb-bson-serializable.bsonserialize
90
90
*/
91
- public function bsonSerialize (): array
91
+ public function bsonSerialize (): object
92
92
{
93
- return $ this ->index ;
93
+ return ( object ) $ this ->index ;
94
94
}
95
95
96
96
/**
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