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: Before:
```php ```php
public function parseLiteral($valueNode) { class MyType extends ScalarType {
...
public function parseLiteral($valueNode) {
//custom implementation //custom implementation
}
} }
``` ```
After: After:
```php ```php
public function parseLiteral($valueNode, array $variables = null) { class MyType extends ScalarType {
...
public function parseLiteral($valueNode, array $variables = null) {
//custom implementation //custom implementation
}
} }
``` ```