Skip to content

Commit 7c7e24d

Browse files
committed
SchemaPrinter::printChildrenBlock() will not detect multiline.
1 parent 2a359c0 commit 7c7e24d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Utils/SchemaPrinter.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -651,14 +651,12 @@ protected static function printValue($value, array $options, string $indentation
651651
/**
652652
* @param array<string> $lines
653653
*/
654-
protected static function printChildrenBlock(array $lines, string $begin, string $end, bool $forceMultiline, string $indentation = ''): string
654+
protected static function printChildrenBlock(array $lines, string $begin, string $end, bool $multiline, string $indentation = ''): string
655655
{
656656
$block = '';
657657

658658
if (count($lines) > 0) {
659-
$forceMultiline = $forceMultiline || static::isLineTooLong(array_sum(array_map('mb_strlen', $lines)));
660-
661-
if ($forceMultiline) {
659+
if ($multiline) {
662660
$wrapped = false;
663661

664662
for ($i = 0, $c = count($lines); $i < $c; $i++) {

0 commit comments

Comments
 (0)