Skip to content

Commit 7a7438d

Browse files
committed
Remove bool hint on decolorize().
1 parent e92d9bc commit 7a7438d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/cli/Colors.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ static public function colorize($string, $colored = null) {
146146
* @param bool $keep_tokens Optional. If set, color tokens (eg "%n") won't be stripped. Default false.
147147
* @return string A string with color information removed.
148148
*/
149-
static public function decolorize( $string, bool $keep_tokens = false ) {
149+
static public function decolorize( $string, $keep_tokens = false ) {
150150
if ( ! $keep_tokens ) {
151151
// Get rid of color tokens if they exist
152152
$string = str_replace('%%', '', $string);

0 commit comments

Comments
 (0)