Skip to content

Commit 47cd2b2

Browse files
authored
Merge pull request #29 from dwschultz/color-stream-fix
fixes colors on streams other than stdout
2 parents e7d5dad + 69ca0c5 commit 47cd2b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Colors.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ public function isEnabled()
107107
*/
108108
public function ptln($line, $color, $channel = STDOUT)
109109
{
110-
$this->set($color);
110+
$this->set($color, $channel);
111111
fwrite($channel, rtrim($line) . "\n");
112-
$this->reset();
112+
$this->reset($channel);
113113
}
114114

115115
/**

0 commit comments

Comments
 (0)