@@ -49,7 +49,7 @@ public function printFunction(GlobalFunction $function, ?PhpNamespace $namespace
4949 $ body = ltrim (rtrim (Strings::normalize ($ body )) . "\n" );
5050
5151 return $ this ->printDocComment ($ function )
52- . self :: printAttributes ($ function ->getAttributes ())
52+ . $ this -> printAttributes ($ function ->getAttributes ())
5353 . $ line
5454 . $ this ->printParameters ($ function , strlen ($ line ) + strlen ($ returnType ) + 2 ) // 2 = parentheses
5555 . $ returnType
@@ -72,7 +72,7 @@ public function printClosure(Closure $closure, ?PhpNamespace $namespace = null):
7272 $ body = Helpers::simplifyTaggedNames ($ closure ->getBody (), $ this ->namespace );
7373 $ body = ltrim (rtrim (Strings::normalize ($ body )) . "\n" );
7474
75- return self :: printAttributes ($ closure ->getAttributes (), inline: true )
75+ return $ this -> printAttributes ($ closure ->getAttributes (), inline: true )
7676 . 'function '
7777 . ($ closure ->getReturnReference () ? '& ' : '' )
7878 . $ this ->printParameters ($ closure )
@@ -93,7 +93,7 @@ public function printArrowFunction(Closure $closure, ?PhpNamespace $namespace =
9393
9494 $ body = Helpers::simplifyTaggedNames ($ closure ->getBody (), $ this ->namespace );
9595
96- return self :: printAttributes ($ closure ->getAttributes ())
96+ return $ this -> printAttributes ($ closure ->getAttributes ())
9797 . 'fn '
9898 . ($ closure ->getReturnReference () ? '& ' : '' )
9999 . $ this ->printParameters ($ closure )
@@ -120,7 +120,7 @@ public function printMethod(Method $method, ?PhpNamespace $namespace = null, boo
120120 $ braceOnNextLine = $ this ->bracesOnNextLine && !str_contains ($ params , "\n" );
121121
122122 return $ this ->printDocComment ($ method )
123- . self :: printAttributes ($ method ->getAttributes ())
123+ . $ this -> printAttributes ($ method ->getAttributes ())
124124 . $ line
125125 . $ params
126126 . $ returnType
@@ -159,7 +159,7 @@ public function printClass(
159159 foreach ($ class ->getCases () as $ case ) {
160160 $ enumType ??= is_scalar ($ case ->getValue ()) ? get_debug_type ($ case ->getValue ()) : null ;
161161 $ cases [] = $ this ->printDocComment ($ case )
162- . self :: printAttributes ($ case ->getAttributes ())
162+ . $ this -> printAttributes ($ case ->getAttributes ())
163163 . 'case ' . $ case ->getName ()
164164 . ($ case ->getValue () === null ? '' : ' = ' . $ this ->dump ($ case ->getValue ()))
165165 . "; \n" ;
@@ -174,7 +174,7 @@ public function printClass(
174174 . 'const ' . $ const ->getName () . ' = ' ;
175175
176176 $ consts [] = $ this ->printDocComment ($ const )
177- . self :: printAttributes ($ const ->getAttributes ())
177+ . $ this -> printAttributes ($ const ->getAttributes ())
178178 . $ def
179179 . $ this ->dump ($ const ->getValue (), strlen ($ def )) . "; \n" ;
180180 }
@@ -205,7 +205,7 @@ public function printClass(
205205 . '$ ' . $ property ->getName ());
206206
207207 $ properties [] = $ this ->printDocComment ($ property )
208- . self :: printAttributes ($ property ->getAttributes ())
208+ . $ this -> printAttributes ($ property ->getAttributes ())
209209 . $ def
210210 . ($ property ->getValue () === null && !$ property ->isInitialized ()
211211 ? ''
@@ -243,7 +243,7 @@ public function printClass(
243243 $ line [] = $ class ->getName () ? null : '{ ' ;
244244
245245 return $ this ->printDocComment ($ class )
246- . self :: printAttributes ($ class ->getAttributes ())
246+ . $ this -> printAttributes ($ class ->getAttributes ())
247247 . implode (' ' , array_filter ($ line ))
248248 . ($ class ->getName () ? "\n{ \n" : "\n" )
249249 . ($ members ? $ this ->indent (implode ("\n" , $ members )) : '' )
@@ -333,7 +333,7 @@ protected function printParameters(Closure|GlobalFunction|Method $function, int
333333 $ promoted = $ param instanceof PromotedParameter ? $ param : null ;
334334 $ params [] =
335335 ($ promoted ? $ this ->printDocComment ($ promoted ) : '' )
336- . ($ attrs = self :: printAttributes ($ param ->getAttributes (), inline: true ))
336+ . ($ attrs = $ this -> printAttributes ($ param ->getAttributes (), inline: true ))
337337 . ($ promoted ?
338338 ($ promoted ->getVisibility () ?: 'public ' )
339339 . ($ promoted ->isReadOnly () && $ type ? ' readonly ' : '' )
0 commit comments