mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
set default $text parameter value as "" in CLI::write()
This commit is contained in:
parent
c8d54363e5
commit
1df323e1bd
@ -288,7 +288,7 @@ class CLI
|
||||
* @param string $foreground
|
||||
* @param string $background
|
||||
*/
|
||||
public static function write(string $text, string $foreground = null, string $background = null)
|
||||
public static function write(string $text = '', string $foreground = null, string $background = null)
|
||||
{
|
||||
if ($foreground || $background)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user