Skip to content

Commit 1eb205c

Browse files
committed
Merge pull request #1118
2 parents e254013 + bf7b7f6 commit 1eb205c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/MongoDB/Query.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ static bool php_phongo_query_init(php_phongo_query_t* intern, zval* filter, zval
306306
PHONGO_QUERY_OPT_DOCUMENT("min", options, "min")
307307
else PHONGO_QUERY_OPT_DOCUMENT("min", modifiers, "$min");
308308
PHONGO_QUERY_OPT_BOOL("noCursorTimeout", options, "noCursorTimeout");
309-
PHONGO_QUERY_OPT_BOOL("oplogReplay", options, "oplogReplay");
309+
PHONGO_QUERY_OPT_BOOL_DEPRECATED("oplogReplay", options, "oplogReplay");
310310
PHONGO_QUERY_OPT_DOCUMENT("projection", options, "projection");
311311
PHONGO_QUERY_OPT_BOOL("returnKey", options, "returnKey")
312312
else PHONGO_QUERY_OPT_BOOL("returnKey", modifiers, "$returnKey");

tests/query/query-ctor-002.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ var_dump(new MongoDB\Driver\Query(
5252
--EXPECTF--
5353
Deprecated: MongoDB\Driver\Query::__construct(): The "maxScan" option is deprecated and will be removed in a future release in %s on line %d
5454

55+
Deprecated: MongoDB\Driver\Query::__construct(): The "oplogReplay" option is deprecated and will be removed in a future release in %s on line %d
56+
5557
Deprecated: MongoDB\Driver\Query::__construct(): The "snapshot" option is deprecated and will be removed in a future release in %s on line %d
5658
object(MongoDB\Driver\Query)#%d (%d) {
5759
["filter"]=>

0 commit comments

Comments
 (0)