2
2
3
3
namespace {
4
4
5
- class ZstdContext {}
5
+ final class ZstdContext {}
6
6
7
7
function zstd_compress (string $ data , int $ level = 3 ): string |false {}
8
8
@@ -12,7 +12,7 @@ function zstd_compress_dict(string $data, string $dict, int $level = DEFAULT_COM
12
12
13
13
function zstd_uncompress_dict (string $ data , string $ dict ): string |false {}
14
14
15
- function zstd_compress_init (int $ level = 3 ): ZstdContext |false {}
15
+ function zstd_compress_init (int $ level = 3 ): ZstdContext |false {}
16
16
17
17
function zstd_compress_add (ZstdContext $ context , string $ data , bool $ end = false ): string |false {}
18
18
@@ -24,8 +24,6 @@ function zstd_uncompress_add(ZstdContext $context, string $data): string|false {
24
24
25
25
namespace Zstd {
26
26
27
- class ZstdContext {}
28
-
29
27
function compress (string $ data , int $ level = 3 ): string |false {}
30
28
31
29
function uncompress (string $ data ): string |false {}
@@ -34,12 +32,12 @@ function compress_dict(string $data, string $dict, int $level = 3): string|false
34
32
35
33
function uncompress_dict (string $ data , string $ dict ): string |false {}
36
34
37
- function compress_init (int $ level = 3 ): ZstdContext |false {}
35
+ function compress_init (int $ level = 3 ): \ ZstdContext |false {}
38
36
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 {}
40
38
41
- function uncompress_init (): ZstdContext |false {}
39
+ function uncompress_init (): \ ZstdContext |false {}
42
40
43
- function uncompress_add (ZstdContext $ context , string $ data ): string |false {}
41
+ function uncompress_add (\ ZstdContext $ context , string $ data ): string |false {}
44
42
45
43
}
0 commit comments