File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ static public function length($string) {
194194 * @param bool $pre_colorized Optional. Set if the string is pre-colorized. Default false.
195195 * @return int
196196 */
197- static public function width ( $ string , bool $ pre_colorized = false ) {
197+ static public function width ( $ string , $ pre_colorized = false ) {
198198 return strwidth ( $ pre_colorized || self ::shouldColorize () ? self ::decolorize ( $ string , $ pre_colorized /*keep_tokens*/ ) : $ string );
199199 }
200200
@@ -206,7 +206,7 @@ static public function width( $string, bool $pre_colorized = false ) {
206206 * @param bool $pre_colorized Optional. Set if the string is pre-colorized. Default false.
207207 * @return string
208208 */
209- static public function pad ( $ string , $ length , bool $ pre_colorized = false ) {
209+ static public function pad ( $ string , $ length , $ pre_colorized = false ) {
210210 $ real_length = self ::width ( $ string , $ pre_colorized );
211211 $ diff = strlen ( $ string ) - $ real_length ;
212212 $ length += $ diff ;
You can’t perform that action at this time.
0 commit comments