Skip to content

Commit 985f3af

Browse files
authored
Remove argument bool $exitWhenDone from StandardServer::send500Error() and StandardServer::handleRequest() (#1102)
1 parent 50b61c1 commit 985f3af

File tree

5 files changed

+325
-250
lines changed

5 files changed

+325
-250
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ You can find and compare releases at the [GitHub release page](https://github.co
114114
- Remove `FieldDefinition::create()` in favor of `new FieldDefinition()`
115115
- Remove `GraphQL\Exception\InvalidArgument`
116116
- Remove `Utils::find()`, `Utils::every()` and `Utils::invariant()`
117+
- Remove argument `bool $exitWhenDone` from `StandardServer::send500Error()` and `StandardServer::handleRequest()`
117118

118119
## 14.11.5
119120

UPGRADE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@ class MyException extends \Exception implements ClientAware
5454
You can always switch to [custom error formatting](https://webonyx.github.io/graphql-php/error-handling/#custom-error-handling-and-formatting)
5555
to revert to the old format.
5656

57+
### `exit` yourself
58+
59+
The argument `bool $exitWhenDone` was removed from `StandardServer::send500Error()` and `StandardServer::handleRequest()`.
60+
Exit yourself if you need to:
61+
62+
```diff
63+
$server = new GraphQL\Server\StandardServer();
64+
-$server->handleRequest($body, true);
65+
+$server->handleRequest($body);
66+
+exit;
67+
```
68+
5769
## v0.13.x > v14.x.x
5870

5971
### BREAKING: Strict coercion of scalar types (#278)

0 commit comments

Comments
 (0)