From 3a4f520da70b299023fa5995836541d17a53e742 Mon Sep 17 00:00:00 2001 From: Daniel Tschinder Date: Fri, 22 Jun 2018 15:46:42 +0200 Subject: [PATCH] Improve example --- 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 + } } ```