Skip to content

Commit 3ec6a2f

Browse files
committed
adding more tests to properly address #15
1 parent 07387cc commit 3ec6a2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/KV/KVClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public function keys($prefix = null, QueryOptions $options = null) {
220220
* )
221221
*/
222222
public function cas(KVPair $p, WriteOptions $options = null) {
223-
$r = new Request('PUT', sprintf('v1/kv/%s', $p->Key), $this->config);
223+
$r = new Request('PUT', sprintf('v1/kv/%s', $p->Key), $this->config, $p->Value);
224224
$r->setWriteOptions($options);
225225
$r->Params->set('cas', (string)$p->ModifyIndex);
226226
if (0 !== $p->Flags) {

0 commit comments

Comments
 (0)