mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-24 22:06:04 +03:00
parent
91daa23c5f
commit
d53f7f041e
18
UPGRADE.md
18
UPGRADE.md
@ -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 {
|
||||||
//custom implementation
|
|
||||||
|
...
|
||||||
|
|
||||||
|
public function parseLiteral($valueNode) {
|
||||||
|
//custom implementation
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
After:
|
After:
|
||||||
```php
|
```php
|
||||||
public function parseLiteral($valueNode, array $variables = null) {
|
class MyType extends ScalarType {
|
||||||
//custom implementation
|
|
||||||
|
...
|
||||||
|
|
||||||
|
public function parseLiteral($valueNode, array $variables = null) {
|
||||||
|
//custom implementation
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user