Skip to content

Commit

Permalink
Improve example
Browse files Browse the repository at this point in the history
  • Loading branch information
danez authored Jun 22, 2018
1 parent 300b580 commit 3a4f520
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
```

Expand Down

0 comments on commit 3a4f520

Please sign in to comment.