mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-29 00:25:17 +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. |
||
---|---|---|
.. | ||
kitchen-sink-noloc.ast | ||
kitchen-sink.ast | ||
kitchen-sink.graphql | ||
LexerTest.php | ||
ParserTest.php | ||
PrinterTest.php | ||
schema-kitchen-sink.graphql | ||
SchemaParserTest.php | ||
SchemaPrinterTest.php | ||
SerializationTest.php | ||
TestUtils.php | ||
TokenTest.php | ||
VisitorTest.php |