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,15 +15,25 @@ A new parameter was added to `parseLiteral()`, which also needs to be added to a
Before:
```php
public function parseLiteral($valueNode) {
//custom implementation
class MyType extends ScalarType {
...
public function parseLiteral($valueNode) {
//custom implementation
}
}
```
After:
```php
public function parseLiteral($valueNode, array $variables = null) {
//custom implementation
class MyType extends ScalarType {
...
public function parseLiteral($valueNode, array $variables = null) {
//custom implementation
}
}
```