Skip to content

Commit b127dba

Browse files
fix(PubSub): publisher compression type (#6417)
Co-authored-by: Yash Sahu <54198301+yash30201@users.noreply.github.com>
1 parent a98ae3a commit b127dba

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

src/BatchPublisher.php

+8-2
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,15 @@ class BatchPublisher
6565
*/
6666
private $client;
6767

68-
private bool $enableCompression;
68+
/**
69+
* @var bool
70+
*/
71+
private $enableCompression;
6972

70-
private int $compressionBytesThreshold;
73+
/**
74+
* @var int
75+
*/
76+
private $compressionBytesThreshold;
7177

7278
/**
7379
* @param string $topicName The topic name.

src/Topic.php

+8-3
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,15 @@ class Topic
8989
*/
9090
private $clientConfig;
9191

92-
private bool $enableCompression;
93-
92+
/**
93+
* @var bool
94+
*/
95+
private $enableCompression;
9496

95-
private int $compressionBytesThreshold;
97+
/**
98+
* @var int
99+
*/
100+
private $compressionBytesThreshold;
96101

97102
/**
98103
* Create a PubSub topic.

0 commit comments

Comments
 (0)