Skip to content

Commit 35a7dc7

Browse files
authored
Merge branch 'master' into phplib-1202
2 parents 1c9a2e5 + 38f6ad4 commit 35a7dc7

36 files changed

+460
-572
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"rector/rector": "^0.16.0",
2525
"squizlabs/php_codesniffer": "^3.7",
2626
"symfony/phpunit-bridge": "^5.2",
27-
"vimeo/psalm": "^4.28"
27+
"vimeo/psalm": "^5.13"
2828
},
2929
"autoload": {
3030
"psr-4": { "MongoDB\\": "src/" },

docs/examples/csfle-explicit_encryption.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141

4242
/* Using the client configured without encryption, find the document and observe
4343
* that the field is not automatically decrypted. */
44+
45+
/** @var object{encryptedField: Binary} $document */
4446
$document = $collection->findOne();
4547

4648
print_r($document);

examples/changestream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function toJSON(object $document): string
5353
$changeStream->next();
5454

5555
if (time() - $startTime > 3) {
56-
printf("Aborting after 3 seconds...\n");
56+
echo "Aborting after 3 seconds...\n";
5757
break;
5858
}
5959
}

examples/command_logger.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ public function commandStarted(CommandStartedEvent $event): void
3131
printf("%s command started\n", $event->getCommandName());
3232

3333
printf("command: %s\n", toJson($event->getCommand()));
34-
printf("\n");
34+
echo "\n";
3535
}
3636

3737
public function commandSucceeded(CommandSucceededEvent $event): void
3838
{
3939
printf("%s command succeeded\n", $event->getCommandName());
4040
printf("reply: %s\n", toJson($event->getReply()));
41-
printf("\n");
41+
echo "\n";
4242
}
4343

4444
public function commandFailed(CommandFailedEvent $event): void
@@ -50,7 +50,7 @@ public function commandFailed(CommandFailedEvent $event): void
5050
printf("exception: %s\n", get_class($exception));
5151
printf("exception.code: %d\n", $exception->getCode());
5252
printf("exception.message: %s\n", $exception->getMessage());
53-
printf("\n");
53+
echo "\n";
5454
}
5555
}
5656

0 commit comments

Comments
 (0)