1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-24 03:46:39 +02:00

tests: fix AST return in PHP

This commit is contained in:
Sébastien Helleu
2018-04-11 23:10:46 +02:00
parent cb4348df61
commit b2344fe5d6
+7 -1
View File
@@ -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."""