Skip to content

PHPC-2402: Remove range_preview constants #1665

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions UPGRADE-2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ UPGRADE FROM 1.x to 2.0
and `getPort()` methods have been added in its place.
* The BSON functions in the `MongoDB\BSON` namespace have been removed in favor
of the `MongoDB\BSON\Document` class.
* The constants `MongoDB\Driver\ClientEncryption::ALGORITHM_RANGE_PREVIEW` and
`MongoDB\Driver\ClientEncryption::QUERY_TYPE_RANGE_PREVIEW` have been
removed. Use the `ALGORITHM_RANGE` and `QUERY_TYPE_RANGE` instead.
14 changes: 0 additions & 14 deletions src/MongoDB/ClientEncryption.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@ final class ClientEncryption
*/
public const ALGORITHM_RANGE = UNKNOWN;

/**
* @deprecated
* @var string
* @cvalue MONGOC_ENCRYPT_ALGORITHM_RANGEPREVIEW
*/
public const ALGORITHM_RANGE_PREVIEW = UNKNOWN;

/**
* @var string
* @cvalue MONGOC_ENCRYPT_QUERY_TYPE_EQUALITY
Expand All @@ -59,13 +52,6 @@ final class ClientEncryption
*/
public const QUERY_TYPE_RANGE = UNKNOWN;

/**
* @deprecated
* @var string
* @cvalue MONGOC_ENCRYPT_QUERY_TYPE_RANGEPREVIEW
*/
public const QUERY_TYPE_RANGE_PREVIEW = UNKNOWN;

final public function __construct(array $options) {}

final public function addKeyAltName(\MongoDB\BSON\Binary $keyId, string $keyAltName): ?object {}
Expand Down
16 changes: 1 addition & 15 deletions src/MongoDB/ClientEncryption_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions tests/clientEncryption/clientEncryption-constants.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ var_dump(MongoDB\Driver\ClientEncryption::AEAD_AES_256_CBC_HMAC_SHA_512_RANDOM);
var_dump(MongoDB\Driver\ClientEncryption::ALGORITHM_INDEXED);
var_dump(MongoDB\Driver\ClientEncryption::ALGORITHM_UNINDEXED);
var_dump(MongoDB\Driver\ClientEncryption::ALGORITHM_RANGE);
var_dump(MongoDB\Driver\ClientEncryption::ALGORITHM_RANGE_PREVIEW);
var_dump(MongoDB\Driver\ClientEncryption::QUERY_TYPE_EQUALITY);
var_dump(MongoDB\Driver\ClientEncryption::QUERY_TYPE_RANGE);
var_dump(MongoDB\Driver\ClientEncryption::QUERY_TYPE_RANGE_PREVIEW);

?>
===DONE===
Expand All @@ -22,8 +20,6 @@ string(36) "AEAD_AES_256_CBC_HMAC_SHA_512-Random"
string(7) "Indexed"
string(9) "Unindexed"
string(5) "Range"
%Astring(12) "RangePreview"
string(8) "equality"
string(5) "range"
%Astring(12) "rangePreview"
===DONE===