Skip to content

Commit e4bc6bf

Browse files
committed
Compatible with previous usage methods
1 parent 14f8f89 commit e4bc6bf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Colors.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function __construct()
6868
}
6969

7070
// Returns colored string
71-
public function getColoredString($string, $foreground_color = null, $background_color = null, $new_line = true)
71+
public function getColoredString($string, $foreground_color = null, $background_color = null, $new_line = false)
7272
{
7373
$colored_string = "";
7474

tests/ColorTest/CliColorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ public function testColoredString()
1717
$color = $this->createServer();
1818
$res = $color->getColoredString("Testing Colors class, this is purple string on yellow background.",
1919
"purple",
20-
"yellow");
20+
"yellow",
21+
true);
2122
$this->assertEquals('Testing Colors class, this is purple string on yellow background.' . PHP_EOL, $res);
2223
}
2324

0 commit comments

Comments
 (0)