From b2344fe5d66f80e43f1b1b37907d439b57e23d10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 11 Apr 2018 23:10:46 +0200 Subject: [PATCH] tests: fix AST return in PHP --- tests/scripts/python/unparse.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/scripts/python/unparse.py b/tests/scripts/python/unparse.py index 423db1549..6b6cf118e 100755 --- a/tests/scripts/python/unparse.py +++ b/tests/scripts/python/unparse.py @@ -1163,7 +1163,13 @@ class UnparsePhp(UnparsePython): """Add an AST Return in output.""" self.fill('return') if node.value: - self.add(' ', node.value, ';') + self.add( + ' ', + (self.prefix, '$'), + node.value, + (self.prefix, None), + ';', + ) def _ast_str(self, node): """Add an AST Str in output."""