diff --git a/src/Language/AST/Node.php b/src/Language/AST/Node.php index 4645c4f..af9a775 100644 --- a/src/Language/AST/Node.php +++ b/src/Language/AST/Node.php @@ -84,7 +84,7 @@ abstract class Node public function __toString() { $tmp = $this->toArray(true); - return json_encode($tmp); + return (string) json_encode($tmp); } /**