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 c275806 commit df050aeCopy full SHA for df050ae
composer.json
@@ -14,7 +14,8 @@
14
"php": ">=5.4",
15
"evenement/evenement": "^3.0 || ^2.0",
16
"react/event-loop": "^1.2",
17
- "react/http": "^1.6"
+ "react/http": "^1.6",
18
+ "react/promise": "^3 || ^2.10 || ^1.2.1"
19
},
20
"require-dev": {
21
"phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.35"
src/EventSource.php
@@ -270,6 +270,8 @@ public function close()
270
271
$request->then(function (ResponseInterface $response) {
272
$response->getBody()->close();
273
+ }, function () {
274
+ // ignore to avoid reporting unhandled rejection
275
});
276
$request->cancel();
277
}
0 commit comments