@@ -49,7 +49,7 @@ public function printFunction(GlobalFunction $function, ?PhpNamespace $namespace
49
49
$ body = ltrim (rtrim (Strings::normalize ($ body )) . "\n" );
50
50
51
51
return $ this ->printDocComment ($ function )
52
- . self :: printAttributes ($ function ->getAttributes ())
52
+ . $ this -> printAttributes ($ function ->getAttributes ())
53
53
. $ line
54
54
. $ this ->printParameters ($ function , strlen ($ line ) + strlen ($ returnType ) + 2 ) // 2 = parentheses
55
55
. $ returnType
@@ -72,7 +72,7 @@ public function printClosure(Closure $closure, ?PhpNamespace $namespace = null):
72
72
$ body = Helpers::simplifyTaggedNames ($ closure ->getBody (), $ this ->namespace );
73
73
$ body = ltrim (rtrim (Strings::normalize ($ body )) . "\n" );
74
74
75
- return self :: printAttributes ($ closure ->getAttributes (), inline: true )
75
+ return $ this -> printAttributes ($ closure ->getAttributes (), inline: true )
76
76
. 'function '
77
77
. ($ closure ->getReturnReference () ? '& ' : '' )
78
78
. $ this ->printParameters ($ closure )
@@ -93,7 +93,7 @@ public function printArrowFunction(Closure $closure, ?PhpNamespace $namespace =
93
93
94
94
$ body = Helpers::simplifyTaggedNames ($ closure ->getBody (), $ this ->namespace );
95
95
96
- return self :: printAttributes ($ closure ->getAttributes ())
96
+ return $ this -> printAttributes ($ closure ->getAttributes ())
97
97
. 'fn '
98
98
. ($ closure ->getReturnReference () ? '& ' : '' )
99
99
. $ this ->printParameters ($ closure )
@@ -120,7 +120,7 @@ public function printMethod(Method $method, ?PhpNamespace $namespace = null, boo
120
120
$ braceOnNextLine = $ this ->bracesOnNextLine && !str_contains ($ params , "\n" );
121
121
122
122
return $ this ->printDocComment ($ method )
123
- . self :: printAttributes ($ method ->getAttributes ())
123
+ . $ this -> printAttributes ($ method ->getAttributes ())
124
124
. $ line
125
125
. $ params
126
126
. $ returnType
@@ -159,7 +159,7 @@ public function printClass(
159
159
foreach ($ class ->getCases () as $ case ) {
160
160
$ enumType ??= is_scalar ($ case ->getValue ()) ? get_debug_type ($ case ->getValue ()) : null ;
161
161
$ cases [] = $ this ->printDocComment ($ case )
162
- . self :: printAttributes ($ case ->getAttributes ())
162
+ . $ this -> printAttributes ($ case ->getAttributes ())
163
163
. 'case ' . $ case ->getName ()
164
164
. ($ case ->getValue () === null ? '' : ' = ' . $ this ->dump ($ case ->getValue ()))
165
165
. "; \n" ;
@@ -174,7 +174,7 @@ public function printClass(
174
174
. 'const ' . $ const ->getName () . ' = ' ;
175
175
176
176
$ consts [] = $ this ->printDocComment ($ const )
177
- . self :: printAttributes ($ const ->getAttributes ())
177
+ . $ this -> printAttributes ($ const ->getAttributes ())
178
178
. $ def
179
179
. $ this ->dump ($ const ->getValue (), strlen ($ def )) . "; \n" ;
180
180
}
@@ -205,7 +205,7 @@ public function printClass(
205
205
. '$ ' . $ property ->getName ());
206
206
207
207
$ properties [] = $ this ->printDocComment ($ property )
208
- . self :: printAttributes ($ property ->getAttributes ())
208
+ . $ this -> printAttributes ($ property ->getAttributes ())
209
209
. $ def
210
210
. ($ property ->getValue () === null && !$ property ->isInitialized ()
211
211
? ''
@@ -243,7 +243,7 @@ public function printClass(
243
243
$ line [] = $ class ->getName () ? null : '{ ' ;
244
244
245
245
return $ this ->printDocComment ($ class )
246
- . self :: printAttributes ($ class ->getAttributes ())
246
+ . $ this -> printAttributes ($ class ->getAttributes ())
247
247
. implode (' ' , array_filter ($ line ))
248
248
. ($ class ->getName () ? "\n{ \n" : "\n" )
249
249
. ($ members ? $ this ->indent (implode ("\n" , $ members )) : '' )
@@ -333,7 +333,7 @@ protected function printParameters(Closure|GlobalFunction|Method $function, int
333
333
$ promoted = $ param instanceof PromotedParameter ? $ param : null ;
334
334
$ params [] =
335
335
($ promoted ? $ this ->printDocComment ($ promoted ) : '' )
336
- . ($ attrs = self :: printAttributes ($ param ->getAttributes (), inline: true ))
336
+ . ($ attrs = $ this -> printAttributes ($ param ->getAttributes (), inline: true ))
337
337
. ($ promoted ?
338
338
($ promoted ->getVisibility () ?: 'public ' )
339
339
. ($ promoted ->isReadOnly () && $ type ? ' readonly ' : '' )
0 commit comments