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:
parent
4e55897059
commit
d18ccfeec7
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user