mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-01-17 15:18:17 +01:00
Rename PrettyPrinterAbstract to PrettyPrinter
This commit is contained in:
parent
c62dda9507
commit
2217f14d6e
1647
lib/PhpParser/PrettyPrinter.php
Normal file
1647
lib/PhpParser/PrettyPrinter.php
Normal file
File diff suppressed because it is too large
Load Diff
@ -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
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user