Rename PrettyPrinterAbstract to PrettyPrinter

This commit is contained in:
Nikita Popov 2023-03-01 21:25:02 +01:00
parent c62dda9507
commit 2217f14d6e
4 changed files with 1652 additions and 1644 deletions

File diff suppressed because it is too large Load Diff

View File

@ -11,9 +11,9 @@ use PhpParser\Node\Name;
use PhpParser\Node\Scalar;
use PhpParser\Node\Scalar\MagicConst;
use PhpParser\Node\Stmt;
use PhpParser\PrettyPrinterAbstract;
use PhpParser\PrettyPrinter;
class Standard extends PrettyPrinterAbstract {
class Standard extends PrettyPrinter {
// Special nodes
protected function pParam(Node\Param $node): string {

File diff suppressed because it is too large Load Diff

View File

@ -35,6 +35,8 @@ class CompatibilityTest extends \PHPUnit\Framework\TestCase {
$this->assertTrue($node instanceof Stmt\PropertyProperty);
$node = new Node\UseItem(new Name('X'));
$this->assertTrue($node instanceof Stmt\UseUse);
$prettyPrinter = new PrettyPrinter\Standard();
$this->assertTrue($prettyPrinter instanceof PrettyPrinterAbstract);
}
/**