Improve example

This commit is contained in:
Daniel Tschinder 2018-06-22 15:46:42 +02:00 committed by GitHub
parent 300b58093b
commit 3a4f520da7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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