Skip to content

Commit 57f5ee3

Browse files
committed
Fixed typo in docs, see #185
1 parent b17b1c3 commit 57f5ee3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/error-handling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ $myErrorHandler = function(array $errors, callable $formatter) {
151151

152152
$result = GraphQL::executeQuery(/* $args */)
153153
->setErrorFormatter($myErrorFormatter)
154-
->setErrorHandler($myErrorHandler)
155-
->toArray();
154+
->setErrorsHandler($myErrorHandler)
155+
->toArray();
156156
```
157157

158158
Note that when you pass [debug flags](#debugging-tools) to **toArray()** your custom formatter will still be

0 commit comments

Comments
 (0)