Improve example

(cherry picked from commit 3a4f520)
This commit is contained in:
Daniel Tschinder 2018-06-22 20:46:42 +07:00 committed by Vladimir Razuvaev
parent 91daa23c5f
commit d53f7f041e

View File

@ -15,16 +15,26 @@ A new parameter was added to `parseLiteral()`, which also needs to be added to a
Before:
```php
class MyType extends ScalarType {
...
public function parseLiteral($valueNode) {
//custom implementation
}
}
```
After:
```php
class MyType extends ScalarType {
...
public function parseLiteral($valueNode, array $variables = null) {
//custom implementation
}
}
```
### Breaking: Descriptions in comments are not used as descriptions by default anymore