Skip to content

Commit

Permalink
Printer: printAttributes & printReturnType are protected [Closes #123]
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Mar 13, 2023
1 parent 2d9e6a4 commit c4e433f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PhpGenerator/Printer.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ protected function printDocComment(/*Traits\CommentAware*/ $commentable): string
}


private function printReturnType(Closure|GlobalFunction|Method $function): string
protected function printReturnType(Closure|GlobalFunction|Method $function): string
{
return ($tmp = $this->printType($function->getReturnType(), $function->isReturnNullable()))
? $this->returnTypeColon . $tmp
Expand All @@ -394,7 +394,7 @@ private function printReturnType(Closure|GlobalFunction|Method $function): strin


/** @param Attribute[] $attrs */
private function printAttributes(array $attrs, bool $inline = false): string
protected function printAttributes(array $attrs, bool $inline = false): string
{
if (!$attrs) {
return '';
Expand Down

0 comments on commit c4e433f

Please sign in to comment.