Skip to content

Commit 6234d4d

Browse files
committed
Use static::strlen() to support Symony 4
1 parent 987aaf9 commit 6234d4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Helper/QuestionHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ protected function writePrompt(OutputInterface $output, Question $question): voi
129129
$messages = [];
130130
$choices = $question->getChoices();
131131
foreach ($choices as $key => $value) {
132-
$width = $max_width - static::width((string) $key);
132+
$width = $max_width - static::strlen((string) $key);
133133
$messages[] = ' [<info>' . \str_repeat(' ', $width) . $key . '</info>] ' . $value;
134134
}
135135
$output->writeln($messages);

0 commit comments

Comments
 (0)