diff --git a/bin/php-parse b/bin/php-parse index ebd2da7f..1760e758 100755 --- a/bin/php-parse +++ b/bin/php-parse @@ -139,7 +139,7 @@ function parseArgs($args) { $files = array(); $attributes = array( 'with-column-info' => false, - 'with-posititions' => false, + 'with-positions' => false, 'with-recovery' => false, ); diff --git a/lib/PhpParser/PrettyPrinter/Standard.php b/lib/PhpParser/PrettyPrinter/Standard.php index 255b1243..c9634c9d 100644 --- a/lib/PhpParser/PrettyPrinter/Standard.php +++ b/lib/PhpParser/PrettyPrinter/Standard.php @@ -623,7 +623,7 @@ class Standard extends PrettyPrinterAbstract . ($node->name->getLast() !== $node->alias ? ' as ' . $node->alias : ''); } - private function pUseType($type) { + protected function pUseType($type) { return $type === Stmt\Use_::TYPE_FUNCTION ? 'function ' : ($type === Stmt\Use_::TYPE_CONSTANT ? 'const ' : ''); }