Skip to content

Commit 636e924

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 a9bfc9f commit 636e924

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

server.pid

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
52652

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)