Skip to content

Commit 8dbd23e

Browse files
Fix deprecations on PHP 8.2
1 parent a3f7189 commit 8dbd23e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Helper/QuestionHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ protected function formatChoiceQuestionChoices(ChoiceQuestion $question, $tag)
207207
{
208208
$messages = [];
209209

210-
$maxWidth = max(array_map('self::strlen', array_keys($choices = $question->getChoices())));
210+
$maxWidth = max(array_map([__CLASS__, 'strlen'], array_keys($choices = $question->getChoices())));
211211

212212
foreach ($choices as $key => $value) {
213213
$padding = str_repeat(' ', $maxWidth - self::strlen($key));

0 commit comments

Comments
 (0)