From 7c7e24d03c7a2ab93d6666b28776e884f1df738e Mon Sep 17 00:00:00 2001 From: Aleksei Lebedev <1329824+LastDragon-ru@users.noreply.github.com> Date: Sat, 6 Nov 2021 17:16:02 +0400 Subject: [PATCH] `SchemaPrinter::printChildrenBlock()` will not detect multiline. --- src/Utils/SchemaPrinter.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Utils/SchemaPrinter.php b/src/Utils/SchemaPrinter.php index f6a95763d..93322aa22 100644 --- a/src/Utils/SchemaPrinter.php +++ b/src/Utils/SchemaPrinter.php @@ -651,14 +651,12 @@ protected static function printValue($value, array $options, string $indentation /** * @param array $lines */ - protected static function printChildrenBlock(array $lines, string $begin, string $end, bool $forceMultiline, string $indentation = ''): string + protected static function printChildrenBlock(array $lines, string $begin, string $end, bool $multiline, string $indentation = ''): string { $block = ''; if (count($lines) > 0) { - $forceMultiline = $forceMultiline || static::isLineTooLong(array_sum(array_map('mb_strlen', $lines))); - - if ($forceMultiline) { + if ($multiline) { $wrapped = false; for ($i = 0, $c = count($lines); $i < $c; $i++) {