set default $text parameter value as "" in CLI::write()

This commit is contained in:
Abdul Malik Ikhsan 2017-01-20 09:14:32 +07:00
parent c8d54363e5
commit 1df323e1bd
No known key found for this signature in database
GPG Key ID: 23FCCC74D1442CAE

View File

@ -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)
{