mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-22 04:46:04 +03:00
15374a31dd
Lifted from / inspired by a similar change in graphql/graphql-js#722, this creates a new function `printError()` (and uses it as the implementation for `GraphQLError#toString()`) which prints location information in the context of an error. This is moved from the syntax error where it used to be hard-coded, so it may now be used to format validation errors, value coercion errors, or any other error which may be associated with a location. ref: graphql/graphql-js BREAKING CHANGE: The SyntaxError message does not contain the codeframe anymore and only the message, (string) $error will print the codeframe. |
||
---|---|---|
.. | ||
Psr7 | ||
PsrResponseTest.php | ||
QueryExecutionTest.php | ||
RequestParsingTest.php | ||
RequestValidationTest.php | ||
ServerConfigTest.php | ||
StandardServerTest.php | ||
TestCase.php |