diff --git a/lib/PhpParser/PrettyPrinterAbstract.php b/lib/PhpParser/PrettyPrinterAbstract.php index ee7e17a..5bc3966 100644 --- a/lib/PhpParser/PrettyPrinterAbstract.php +++ b/lib/PhpParser/PrettyPrinterAbstract.php @@ -247,11 +247,11 @@ abstract class PrettyPrinterAbstract if ($childPrecedence > $parentPrecedence || ($parentPrecedence == $childPrecedence && $parentAssociativity != $childPosition) ) { - return '(' . $this->{'p' . $type}($node) . ')'; + return '(' . $this->p($node) . ')'; } } - return $this->{'p' . $type}($node); + return $this->p($node); } /**