@@ -73,7 +73,7 @@ public static function printf(string $format, ...$args): int
7373 *
7474 * @return int
7575 */
76- public static function writeRaw ($ message , $ nl = true , $ quit = false , array $ opts = []): int
76+ public static function writeRaw ($ message , bool $ nl = true , $ quit = false , array $ opts = []): int
7777 {
7878 $ opts ['color ' ] = false ;
7979 return self ::write ($ message , $ nl , $ quit , $ opts );
@@ -138,7 +138,7 @@ public static function print($message, $quit = false, array $opts = []): int
138138 *
139139 * @return int
140140 */
141- public static function write ($ messages , $ nl = true , $ quit = false , array $ opts = []): int
141+ public static function write ($ messages , bool $ nl = true , $ quit = false , array $ opts = []): int
142142 {
143143 if (is_array ($ messages )) {
144144 $ messages = implode ($ nl ? PHP_EOL : '' , $ messages );
@@ -263,7 +263,7 @@ public static function clearBuffer(): void
263263 * @return string If flush = False, will return all buffer text.
264264 * @see write()
265265 */
266- public static function stopBuffer ($ flush = true , $ nl = false , $ quit = false , array $ opts = []): string
266+ public static function stopBuffer (bool $ flush = true , bool $ nl = false , bool $ quit = false , array $ opts = []): string
267267 {
268268 self ::$ buffering = false ;
269269
@@ -290,7 +290,7 @@ public static function stopBuffer($flush = true, $nl = false, $quit = false, arr
290290 *
291291 * @see write()
292292 */
293- public static function flushBuffer ($ nl = false , $ quit = false , array $ opts = []): void
293+ public static function flushBuffer (bool $ nl = false , bool $ quit = false , array $ opts = []): void
294294 {
295295 self ::stopBuffer (true , $ nl , $ quit , $ opts );
296296 }
0 commit comments