File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ private static function getOutputHandler()
2020 return $ outputHandle ;
2121 }
2222
23- public static function output (...$ texts ): void
23+ public static function write (...$ texts ): void
2424 {
2525 if ((GlobalOptions::get ('output.heapspace ' ) ?? Runtime::OUTPUT_HEAPSPACE ) === true ) {
2626 foreach ($ texts as $ text ) {
Original file line number Diff line number Diff line change @@ -137,28 +137,28 @@ public function print($methodSignature, $a = null)
137137 $ arg = $ a ;
138138
139139 if ($ arg instanceof Utf8Info) {
140- Output::output ($ arg ->getString ());
140+ Output::write ($ arg ->getString ());
141141 return ;
142142 }
143143 if (is_scalar ($ arg ) ||
144144 $ arg instanceof Collection ||
145145 $ arg instanceof PrimitiveValueInterface
146146 ) {
147147 if (((string ) $ arg ) !== "\x00" ) {
148- Output::output ($ arg );
148+ Output::write ($ arg );
149149 return ;
150150 }
151151 }
152152
153153 if ($ arg instanceof JavaClass) {
154- Output::output ($ arg );
154+ Output::write ($ arg );
155155 return ;
156156 }
157157
158158 [ $ signatureType , $ typeName ] = TypeResolver::getType ($ methodSignature ['arguments ' ][0 ]);
159159
160160 if ($ typeName === \PHPJava \Packages \java \lang \String::class) {
161- Output::output ('null ' );
161+ Output::write ('null ' );
162162 }
163163
164164 throw new NullPointerException ();
@@ -201,9 +201,9 @@ public function println($methodSignature, $a = null)
201201 try {
202202 $ this ->print ($ methodSignature , $ a );
203203 // output break line
204- Output::output ("\n" );
204+ Output::write ("\n" );
205205 } catch (\Exception $ e ) {
206- Output::output ("\n" );
206+ Output::write ("\n" );
207207 throw $ e ;
208208 }
209209 }
You can’t perform that action at this time.
0 commit comments