Skip to content

Commit a443ec4

Browse files
committed
Prepend encryption flag iue to platform metadata
Sending extra metadata in the handshake will allow us to detect when encryption is enabled. `iue` for In-Use Ecnryption was chosen to save bytes (as metadata will be truncated if it exceeds byte limit)
1 parent ca43b05 commit a443ec4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Client.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@
4848

4949
use function array_diff_key;
5050

51-
/**
52-
* @psalm-type stage = StageInterface|array<string,mixed>|stdClass
53-
*/
51+
/** @psalm-type stage = StageInterface|array<string,mixed>|stdClass */
5452
class Client implements Stringable
5553
{
5654
public const DEFAULT_URI = 'mongodb://127.0.0.1/';
@@ -389,7 +387,7 @@ public function startSession(array $options = []): Session
389387
*
390388
* @see Watch::__construct() for supported options
391389
* @psalm-param list<stage> $pipeline Aggregation pipeline
392-
* @param array $options Command options
390+
* @param array $options Command options
393391
* @throws InvalidArgumentException for parameter/option parsing errors
394392
*/
395393
public function watch(array $pipeline = [], array $options = []): ChangeStream

0 commit comments

Comments
 (0)