mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-22 12:56:05 +03:00
Fixed typo in docs, see #185
This commit is contained in:
parent
b17b1c3336
commit
57f5ee3783
@ -151,8 +151,8 @@ $myErrorHandler = function(array $errors, callable $formatter) {
|
||||
|
||||
$result = GraphQL::executeQuery(/* $args */)
|
||||
->setErrorFormatter($myErrorFormatter)
|
||||
->setErrorHandler($myErrorHandler)
|
||||
->toArray();
|
||||
->setErrorsHandler($myErrorHandler)
|
||||
->toArray();
|
||||
```
|
||||
|
||||
Note that when you pass [debug flags](#debugging-tools) to **toArray()** your custom formatter will still be
|
||||
|
Loading…
Reference in New Issue
Block a user