From d53f7f041eb1317aa3340478062ef446681ef2b4 Mon Sep 17 00:00:00 2001 From: Daniel Tschinder Date: Fri, 22 Jun 2018 20:46:42 +0700 Subject: [PATCH] Improve example (cherry picked from commit 3a4f520) --- UPGRADE.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/UPGRADE.md b/UPGRADE.md index 8d8e219..c9e2443 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -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 + } } ```