Skip to content

Commit 98751cf

Browse files
Merge v1.x into v2.x (#1586)
2 parents 79fd723 + 603d160 commit 98751cf

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

generator/config/accumulator/accumulator.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ tests:
7373
function(state, numCopies) {
7474
return { count: state.count + 1, sum: state.sum + numCopies }
7575
}
76-
accumulateArgs: [ "$copies" ],
76+
accumulateArgs: [ "$copies" ]
7777
merge:
7878
$code: |-
7979
function(state1, state2) {

generator/config/stage/vectorSearch.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ arguments:
2222
-
2323
name: path
2424
type:
25-
- searchPath
25+
- string
2626
description: |
2727
Indexed vector type field to search.
2828
-

src/Builder/Stage/FactoryTrait.php

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Stage/FluentFactoryTrait.php

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Stage/VectorSearchStage.php

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/FunctionalTestCase.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ protected function getFeatureCompatibilityVersion(?ReadPreference $readPreferenc
331331
$cursor = $this->manager->executeCommand(
332332
'admin',
333333
new Command(['getParameter' => 1, 'featureCompatibilityVersion' => 1]),
334-
$readPreference ?: new ReadPreference(ReadPreference::PRIMARY),
334+
['readPreference' => $readPreference ?: new ReadPreference(ReadPreference::PRIMARY)],
335335
);
336336

337337
$cursor->setTypeMap(['root' => 'array', 'document' => 'array']);
@@ -354,7 +354,7 @@ protected function getServerVersion(?ReadPreference $readPreference = null)
354354
$buildInfo = $this->manager->executeCommand(
355355
$this->getDatabaseName(),
356356
new Command(['buildInfo' => 1]),
357-
$readPreference ?: new ReadPreference(ReadPreference::PRIMARY),
357+
['readPreference' => $readPreference ?: new ReadPreference(ReadPreference::PRIMARY)],
358358
)->toArray()[0];
359359

360360
if (isset($buildInfo->version) && is_string($buildInfo->version)) {
@@ -369,7 +369,7 @@ protected function getServerStorageEngine(?ReadPreference $readPreference = null
369369
$cursor = $this->manager->executeCommand(
370370
$this->getDatabaseName(),
371371
new Command(['serverStatus' => 1]),
372-
$readPreference ?: new ReadPreference(ReadPreference::PRIMARY),
372+
['readPreference' => $readPreference ?: new ReadPreference(ReadPreference::PRIMARY)],
373373
);
374374

375375
$result = current($cursor->toArray());

tests/SpecTests/PrimaryStepDownSpecTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ private function getTotalConnectionsCreated(?Server $server = null)
270270
$cursor = $server->executeCommand(
271271
$this->getDatabaseName(),
272272
new Command(['serverStatus' => 1]),
273-
new ReadPreference(ReadPreference::PRIMARY),
273+
['readPreference' => new ReadPreference(ReadPreference::PRIMARY)],
274274
);
275275

276276
$cursor->setTypeMap(['root' => 'array', 'document' => 'array']);

0 commit comments

Comments
 (0)