Skip to content

Commit 8dac0f1

Browse files
thekidkjdev
authored andcommitted
ZstdContext only exists in global namespace
1 parent e8cbb01 commit 8dac0f1

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

zstd.stub.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace {
44

5-
class ZstdContext {}
5+
final class ZstdContext {}
66

77
function zstd_compress(string $data, int $level = 3): string|false {}
88

@@ -12,7 +12,7 @@ function zstd_compress_dict(string $data, string $dict, int $level = DEFAULT_COM
1212

1313
function zstd_uncompress_dict(string $data, string $dict): string|false {}
1414

15-
function zstd_compress_init(int $level= 3): ZstdContext|false {}
15+
function zstd_compress_init(int $level = 3): ZstdContext|false {}
1616

1717
function zstd_compress_add(ZstdContext $context, string $data, bool $end = false): string|false {}
1818

@@ -24,8 +24,6 @@ function zstd_uncompress_add(ZstdContext $context, string $data): string|false {
2424

2525
namespace Zstd {
2626

27-
class ZstdContext {}
28-
2927
function compress(string $data, int $level = 3): string|false {}
3028

3129
function uncompress(string $data): string|false {}
@@ -34,12 +32,12 @@ function compress_dict(string $data, string $dict, int $level = 3): string|false
3432

3533
function uncompress_dict(string $data, string $dict): string|false {}
3634

37-
function compress_init(int $level= 3): ZstdContext|false {}
35+
function compress_init(int $level = 3): \ZstdContext|false {}
3836

39-
function compress_add(ZstdContext $context, string $data, bool $end = false): string|false {}
37+
function compress_add(\ZstdContext $context, string $data, bool $end = false): string|false {}
4038

41-
function uncompress_init(): ZstdContext|false {}
39+
function uncompress_init(): \ZstdContext|false {}
4240

43-
function uncompress_add(ZstdContext $context, string $data): string|false {}
41+
function uncompress_add(\ZstdContext $context, string $data): string|false {}
4442

4543
}

0 commit comments

Comments
 (0)