From b9fe31351e42c1099d173da9a52a700d9ed0e6b3 Mon Sep 17 00:00:00 2001 From: tangwei Date: Sun, 1 Feb 2026 22:59:47 +0800 Subject: [PATCH] optimize return array|ResponseInterface --- src/TCC.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/TCC.php b/src/TCC.php index ec313dd..06c1e82 100644 --- a/src/TCC.php +++ b/src/TCC.php @@ -16,6 +16,7 @@ use DtmClient\Exception\InvalidArgumentException; use DtmClient\Exception\UnsupportedException; use Google\Protobuf\Internal\Message; +use Psr\Http\Message\ResponseInterface; class TCC extends AbstractTransaction { @@ -51,6 +52,7 @@ public function globalTransaction(callable $callback, ?string $gid = null) /** * @param array|Message $body + * @return array|ResponseInterface */ public function callBranch($body, string $tryUrl, string $confirmUrl, string $cancelUrl) {