Skip to content

Commit 9342798

Browse files
committed
Fix Zstd compressor ID
1 parent ee1155c commit 9342798

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/php/com/mongodb/io/Zstd.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php namespace com\mongodb\io;
22

33
class Zstd extends Compressor {
4-
public $id= 2;
4+
public $id= 3;
55
public $level;
66

77
/** @param int $level */

src/test/php/com/mongodb/unittest/CompressionTest.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,6 @@ public function negotiate_zlib_with($options, $level) {
7272

7373
#[Test, Runtime(extensions: ['zstd'])]
7474
public function negotiate_zstd() {
75-
Assert::instance(Zstd::class, Compression::negotiate(['unsupported', 'zstd'])->select(2));
75+
Assert::instance(Zstd::class, Compression::negotiate(['unsupported', 'zstd'])->select(3));
7676
}
7777
}

0 commit comments

Comments
 (0)