We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e92d9bc commit 7a7438dCopy full SHA for 7a7438d
1 file changed
lib/cli/Colors.php
@@ -146,7 +146,7 @@ static public function colorize($string, $colored = null) {
146
* @param bool $keep_tokens Optional. If set, color tokens (eg "%n") won't be stripped. Default false.
147
* @return string A string with color information removed.
148
*/
149
- static public function decolorize( $string, bool $keep_tokens = false ) {
+ static public function decolorize( $string, $keep_tokens = false ) {
150
if ( ! $keep_tokens ) {
151
// Get rid of color tokens if they exist
152
$string = str_replace('%%', '%¾', $string);
0 commit comments