From 816fa067b318becee1380bd5e705209345b4b2bd Mon Sep 17 00:00:00 2001 From: Andreas Heiberg Date: Thu, 10 Nov 2016 18:36:28 +0000 Subject: [PATCH] type hint Name node in visitor --- src/Language/Printer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Language/Printer.php b/src/Language/Printer.php index 1a34a26..a3ace52 100644 --- a/src/Language/Printer.php +++ b/src/Language/Printer.php @@ -1,7 +1,6 @@ [ - NodeType::NAME => function($node) { + NodeType::NAME => function(Node $node) { return '' . $node->value; }, NodeType::VARIABLE => function($node) {