Skip to content

Commit d849c79

Browse files
committed
mebe fixes
1 parent d8d617d commit d849c79

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/KV/KVClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ public function Txn(null|QueryOptions $opts = null, TxnOp ...$txn): KVTxnAPIResp
205205
}
206206
$ret->OK = true;
207207
// TODO: Maybe go straight to actual response? What is the benefit of this...
208-
$internal = new TxnResponse($dec->Decoded);
208+
$internal = TxnResponse::jsonUnserialize($dec->Decoded);
209209
$kvr = new KVTxnResponse();
210210
$kvr->Errors = $internal->Errors;
211211
$kvr->Results = $internal->Results;

src/PHPLib/funcs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function dur_to_millisecond(Time\Duration $dur): string
5555
$ms = 1;
5656
}
5757

58-
return "${ms}ms";
58+
return "{$ms}ms";
5959
}
6060

6161
$_zeroObject = new \stdClass();

0 commit comments

Comments
 (0)