We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efdb0b5 commit 1a4b5b4Copy full SHA for 1a4b5b4
Response/ResponseTrait.php
@@ -169,6 +169,15 @@ public function toArray(bool $throw = true): array
169
return $content;
170
}
171
172
+ /**
173
+ * {@inheritdoc}
174
+ */
175
+ public function cancel(): void
176
+ {
177
+ $this->info['error'] = 'Response has been canceled.';
178
+ $this->close();
179
+ }
180
+
181
/**
182
* Closes the response and all its network handles.
183
*/
composer.json
@@ -21,7 +21,7 @@
21
"require": {
22
"php": "^7.1.3",
23
"psr/log": "^1.0",
24
- "symfony/http-client-contracts": "^1.1",
+ "symfony/http-client-contracts": "^1.1.3",
25
"symfony/polyfill-php73": "^1.11"
26
},
27
"require-dev": {
0 commit comments