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