summaryrefslogtreecommitdiff
path: root/tests/scripts/python/unparse.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scripts/python/unparse.py')
-rwxr-xr-xtests/scripts/python/unparse.py8
1 files changed, 7 insertions, 1 deletions
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."""