Skip to content

Commit ea94e98

Browse files
authored
PHPC-2402: Remove range_preview constants (#1665)
1 parent 4eeff7f commit ea94e98

File tree

4 files changed

+4
-33
lines changed

4 files changed

+4
-33
lines changed

UPGRADE-2.0.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ UPGRADE FROM 1.x to 2.0
66
and `getPort()` methods have been added in its place.
77
* The BSON functions in the `MongoDB\BSON` namespace have been removed in favor
88
of the `MongoDB\BSON\Document` class.
9+
* The constants `MongoDB\Driver\ClientEncryption::ALGORITHM_RANGE_PREVIEW` and
10+
`MongoDB\Driver\ClientEncryption::QUERY_TYPE_RANGE_PREVIEW` have been
11+
removed. Use the `ALGORITHM_RANGE` and `QUERY_TYPE_RANGE` instead.

src/MongoDB/ClientEncryption.stub.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,6 @@ final class ClientEncryption
4040
*/
4141
public const ALGORITHM_RANGE = UNKNOWN;
4242

43-
/**
44-
* @deprecated
45-
* @var string
46-
* @cvalue MONGOC_ENCRYPT_ALGORITHM_RANGEPREVIEW
47-
*/
48-
public const ALGORITHM_RANGE_PREVIEW = UNKNOWN;
49-
5043
/**
5144
* @var string
5245
* @cvalue MONGOC_ENCRYPT_QUERY_TYPE_EQUALITY
@@ -59,13 +52,6 @@ final class ClientEncryption
5952
*/
6053
public const QUERY_TYPE_RANGE = UNKNOWN;
6154

62-
/**
63-
* @deprecated
64-
* @var string
65-
* @cvalue MONGOC_ENCRYPT_QUERY_TYPE_RANGEPREVIEW
66-
*/
67-
public const QUERY_TYPE_RANGE_PREVIEW = UNKNOWN;
68-
6955
final public function __construct(array $options) {}
7056

7157
final public function addKeyAltName(\MongoDB\BSON\Binary $keyId, string $keyAltName): ?object {}

src/MongoDB/ClientEncryption_arginfo.h

Lines changed: 1 addition & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/clientEncryption/clientEncryption-constants.phpt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ var_dump(MongoDB\Driver\ClientEncryption::AEAD_AES_256_CBC_HMAC_SHA_512_RANDOM);
88
var_dump(MongoDB\Driver\ClientEncryption::ALGORITHM_INDEXED);
99
var_dump(MongoDB\Driver\ClientEncryption::ALGORITHM_UNINDEXED);
1010
var_dump(MongoDB\Driver\ClientEncryption::ALGORITHM_RANGE);
11-
var_dump(MongoDB\Driver\ClientEncryption::ALGORITHM_RANGE_PREVIEW);
1211
var_dump(MongoDB\Driver\ClientEncryption::QUERY_TYPE_EQUALITY);
1312
var_dump(MongoDB\Driver\ClientEncryption::QUERY_TYPE_RANGE);
14-
var_dump(MongoDB\Driver\ClientEncryption::QUERY_TYPE_RANGE_PREVIEW);
1513

1614
?>
1715
===DONE===
@@ -22,8 +20,6 @@ string(36) "AEAD_AES_256_CBC_HMAC_SHA_512-Random"
2220
string(7) "Indexed"
2321
string(9) "Unindexed"
2422
string(5) "Range"
25-
%Astring(12) "RangePreview"
2623
string(8) "equality"
2724
string(5) "range"
28-
%Astring(12) "rangePreview"
2925
===DONE===

0 commit comments

Comments
 (0)