Skip to content

Commit 7bb648b

Browse files
feat(api): api update
1 parent 43a24ef commit 7bb648b

3 files changed

Lines changed: 17 additions & 5 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ playground/
88
*.swo
99
*.swp
1010
vendor/
11+
12+
# do not edit! excludes generated files used internally
13+
.artifacts/

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 4
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser%2Fcas-parser-ce2296c4b14d27c141bb2745607d2456c923fdca3ae0a0a0800c26e564333850.yml
3-
openapi_spec_hash: 8eb586ccf16b534c0c15ff6a22274c7d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cas-parser%2Fcas-parser-2e3df9c77e887f49ca3dffd5d68f30a8a0ea0b557f31282dd191ce85713e3e34.yml
3+
openapi_spec_hash: 1cb90023118602a40a106cd51ed6a926
44
config_hash: cb5d75abef6264b5d86448caf7295afa

src/Core/BaseClient.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,17 @@ public function request(
7171
?string $stream = null,
7272
RequestOptions|array|null $options = [],
7373
): BaseResponse {
74-
// @phpstan-ignore-next-line
75-
[$req, $opts] = $this->buildRequest(method: $method, path: $path, query: $query, headers: $headers, body: $body, opts: $options);
74+
[$req, $opts] = $this->buildRequest(
75+
method: $method,
76+
// @phpstan-ignore argument.type
77+
path: $path,
78+
query: $query,
79+
// @phpstan-ignore argument.type
80+
headers: $headers,
81+
body: $body,
82+
// @phpstan-ignore argument.type
83+
opts: $options,
84+
);
7685
['method' => $method, 'path' => $uri, 'headers' => $headers, 'body' => $data] = $req;
7786
assert(!is_null($opts->requestFactory));
7887

@@ -262,7 +271,7 @@ protected function sendRequest(
262271
throw $exn;
263272
}
264273

265-
$seconds = $this->retryDelay($opts, retryCount: $redirectCount, rsp: $rsp);
274+
$seconds = $this->retryDelay($opts, retryCount: $retryCount, rsp: $rsp);
266275
$floor = floor($seconds);
267276
time_nanosleep((int) $floor, nanoseconds: (int) ($seconds - $floor) * 10 ** 9);
268277

0 commit comments

Comments
 (0)