@@ -61,7 +61,7 @@ public function printFunction(GlobalFunction $function, ?PhpNamespace $namespace
61
61
$ body = Helpers::simplifyTaggedNames ($ function ->getBody (), $ this ->namespace );
62
62
63
63
return Helpers::formatDocComment ($ function ->getComment () . "\n" )
64
- . self :: printAttributes ($ function ->getAttributes ())
64
+ . $ this -> printAttributes ($ function ->getAttributes ())
65
65
. $ line
66
66
. $ this ->printParameters ($ function , strlen ($ line ) + strlen ($ returnType ) + 2 ) // 2 = parentheses
67
67
. $ returnType
@@ -82,7 +82,7 @@ public function printClosure(Closure $closure, ?PhpNamespace $namespace = null):
82
82
: $ tmp ;
83
83
$ body = Helpers::simplifyTaggedNames ($ closure ->getBody (), $ this ->namespace );
84
84
85
- return self :: printAttributes ($ closure ->getAttributes (), true )
85
+ return $ this -> printAttributes ($ closure ->getAttributes (), true )
86
86
. 'function '
87
87
. ($ closure ->getReturnReference () ? '& ' : '' )
88
88
. $ this ->printParameters ($ closure )
@@ -103,7 +103,7 @@ public function printArrowFunction(Closure $closure, ?PhpNamespace $namespace =
103
103
104
104
$ body = Helpers::simplifyTaggedNames ($ closure ->getBody (), $ this ->namespace );
105
105
106
- return self :: printAttributes ($ closure ->getAttributes ())
106
+ return $ this -> printAttributes ($ closure ->getAttributes ())
107
107
. 'fn '
108
108
. ($ closure ->getReturnReference () ? '& ' : '' )
109
109
. $ this ->printParameters ($ closure )
@@ -128,7 +128,7 @@ public function printMethod(Method $method, ?PhpNamespace $namespace = null): st
128
128
$ body = Helpers::simplifyTaggedNames ((string ) $ method ->getBody (), $ this ->namespace );
129
129
130
130
return Helpers::formatDocComment ($ method ->getComment () . "\n" )
131
- . self :: printAttributes ($ method ->getAttributes ())
131
+ . $ this -> printAttributes ($ method ->getAttributes ())
132
132
. $ line
133
133
. $ params
134
134
. $ returnType
@@ -162,7 +162,7 @@ public function printClass(ClassType $class, ?PhpNamespace $namespace = null): s
162
162
$ cases = [];
163
163
foreach ($ class ->getCases () as $ case ) {
164
164
$ cases [] = Helpers::formatDocComment ((string ) $ case ->getComment ())
165
- . self :: printAttributes ($ case ->getAttributes ())
165
+ . $ this -> printAttributes ($ case ->getAttributes ())
166
166
. 'case ' . $ case ->getName ()
167
167
. ($ case ->getValue () === null ? '' : ' = ' . $ this ->dump ($ case ->getValue ()))
168
168
. "; \n" ;
@@ -179,7 +179,7 @@ public function printClass(ClassType $class, ?PhpNamespace $namespace = null): s
179
179
. 'const ' . $ const ->getName () . ' = ' ;
180
180
181
181
$ consts [] = Helpers::formatDocComment ((string ) $ const ->getComment ())
182
- . self :: printAttributes ($ const ->getAttributes ())
182
+ . $ this -> printAttributes ($ const ->getAttributes ())
183
183
. $ def
184
184
. $ this ->dump ($ const ->getValue (), strlen ($ def )) . "; \n" ;
185
185
}
@@ -196,7 +196,7 @@ public function printClass(ClassType $class, ?PhpNamespace $namespace = null): s
196
196
. '$ ' . $ property ->getName ());
197
197
198
198
$ properties [] = Helpers::formatDocComment ((string ) $ property ->getComment ())
199
- . self :: printAttributes ($ property ->getAttributes ())
199
+ . $ this -> printAttributes ($ property ->getAttributes ())
200
200
. $ def
201
201
. ($ property ->getValue () === null && !$ property ->isInitialized ()
202
202
? ''
@@ -220,7 +220,7 @@ public function printClass(ClassType $class, ?PhpNamespace $namespace = null): s
220
220
221
221
return Strings::normalize (
222
222
Helpers::formatDocComment ($ class ->getComment () . "\n" )
223
- . self :: printAttributes ($ class ->getAttributes ())
223
+ . $ this -> printAttributes ($ class ->getAttributes ())
224
224
. ($ class ->isAbstract () ? 'abstract ' : '' )
225
225
. ($ class ->isFinal () ? 'final ' : '' )
226
226
. ($ class ->getName () ? $ class ->getType () . ' ' . $ class ->getName () . $ enumType . ' ' : '' )
@@ -317,7 +317,7 @@ protected function printParameters($function, int $column = 0): string
317
317
$ promoted = $ param instanceof PromotedParameter ? $ param : null ;
318
318
$ params [] =
319
319
($ promoted ? Helpers::formatDocComment ((string ) $ promoted ->getComment ()) : '' )
320
- . ($ attrs = self :: printAttributes ($ param ->getAttributes (), true ))
320
+ . ($ attrs = $ this -> printAttributes ($ param ->getAttributes (), true ))
321
321
. ($ promoted ?
322
322
($ promoted ->getVisibility () ?: 'public ' )
323
323
. ($ promoted ->isReadOnly () && $ type ? ' readonly ' : '' )
0 commit comments