We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58c96ba commit 033f317Copy full SHA for 033f317
benchmark/src/DriverBench/BSONMicroBench.php
@@ -16,6 +16,7 @@
16
*/
17
final class BSONMicroBench
18
{
19
+ /** @param array{document:Document} $params */
20
#[ParamProviders('provideParams')]
21
public function benchEncoding(array $params): void
22
@@ -25,12 +26,13 @@ public function benchEncoding(array $params): void
25
26
}
27
28
29
+ /** @param array{bson:string} $params */
30
31
public function benchDecoding(array $params): void
32
- $document = $params['document'];
33
+ $bson = $params['bson'];
34
for ($i = 0; $i < 10_000; $i++) {
- Document::fromBSON($document);
35
+ Document::fromBSON($bson);
36
37
38
0 commit comments