We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ee4f23 commit cb5c203Copy full SHA for cb5c203
lib/cli/Colors.php
@@ -195,8 +195,9 @@ static public function length($string) {
195
* @return int
196
*/
197
static public function width($string) {
198
- if (isset(self::$_string_cache[md5($string)]['decolorized'])) {
199
- $test_string = self::$_string_cache[md5($string)]['decolorized'];
+ $md5 = md5($string);
+ if (isset(self::$_string_cache[$md5]['decolorized'])) {
200
+ $test_string = self::$_string_cache[$md5]['decolorized'];
201
} else {
202
$test_string = self::decolorize($string);
203
}
0 commit comments