Skip to content

Commit cba387c

Browse files
committed
chore: add more phpdoc to decodeUsing function
1 parent 6068fa6 commit cba387c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/http-client/src/Response.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ public function object(): array|object|null
9898

9999
/**
100100
* Set a custom decode callback.
101+
*
102+
* The callback will be invoked with the following parameters:
103+
* - string $body: The raw response body.
104+
* - bool $asObject: When true, the decoder should return an array of objects.
101105
*/
102106
public function decodeUsing(?Closure $callback): static
103107
{

0 commit comments

Comments
 (0)