Skip to content

Commit 5c0b558

Browse files
committed
[Contracts] fix phpdoc for http-client (user_data)
1 parent 5442186 commit 5c0b558

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

HttpClientInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ interface HttpClientInterface
3939
// the JSON-encoded value and set the "content-type" headers to a JSON-compatible
4040
// value it is they are not defined - typically "application/json"
4141
'user_data' => null, // mixed - any extra data to attach to the request (scalar, callable, object...) that
42-
// MUST be available via $response->getInfo('data') - not used internally
42+
// MUST be available via $response->getInfo('user_data') - not used internally
4343
'max_redirects' => 20, // int - the maximum number of redirects to follow; a value lower or equal to 0 means
4444
// redirects should not be followed; "Authorization" and "Cookie" headers MUST
4545
// NOT follow except for the initial host name

ResponseInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function toArray(bool $throw = true): array;
8686
* - http_method - the HTTP verb of the last request
8787
* - http_code - the last response code or 0 when it is not known yet
8888
* - error - the error message when the transfer was aborted, null otherwise
89-
* - data - the value of the "data" request option, null if not set
89+
* - user_data - the value of the "user_data" request option, null if not set
9090
* - url - the last effective URL of the request
9191
*
9292
* When the "capture_peer_cert_chain" option is true, the "peer_certificate_chain"

0 commit comments

Comments
 (0)