Skip to content

Commit 7aeaf92

Browse files
Valery Fouquesnekufa
Valery Fouques
authored andcommitted
fix KV case
1 parent 219c5a8 commit 7aeaf92

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/KeyValue/Bucket.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function getStream(): Stream
9898
{
9999
if (!$this->stream) {
100100
$this->stream = $this->client->getApi()
101-
->getStream(strtoupper("kv_$this->name"));
101+
->getStream("KV_$this->name");
102102

103103
if (!$this->stream->exists()) {
104104
$this->getConfiguration()
@@ -112,7 +112,7 @@ public function getStream(): Stream
112112

113113
public function getSubject(string $key): string
114114
{
115-
return strtoupper("\$kv.$this->name.$key");
115+
return "\$KV.$this->name.$key";
116116
}
117117

118118
public function delete($key)

src/KeyValue/Configuration.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function configureStream(StreamConfiguration $configuration): self
3030
->setMaxMessageSize($this->getMaxValueSize())
3131
->setMaxMessagesPerSubject($this->getHistory() ?? 1)
3232
->setReplicas($this->getReplicas() ?? 1)
33-
->setSubjects([strtoupper("\$kv.$this->name.*")]);
33+
->setSubjects(["\$KV.$this->name.*"]);
3434

3535
return $this;
3636
}

0 commit comments

Comments
 (0)