1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-30 04:19:30 +01:00

Use p() in pPrec() for easier extensibility

This commit is contained in:
Nikita Popov 2017-02-09 00:03:00 +01:00
parent 4e55897059
commit d18ccfeec7

View File

@ -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);
}
/**