Skip to content

Commit c4e433f

Browse files
committed
Printer: printAttributes & printReturnType are protected [Closes #123]
1 parent 2d9e6a4 commit c4e433f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PhpGenerator/Printer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ protected function printDocComment(/*Traits\CommentAware*/ $commentable): string
385385
}
386386

387387

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

395395

396396
/** @param Attribute[] $attrs */
397-
private function printAttributes(array $attrs, bool $inline = false): string
397+
protected function printAttributes(array $attrs, bool $inline = false): string
398398
{
399399
if (!$attrs) {
400400
return '';

0 commit comments

Comments
 (0)