Skip to content

Commit

Permalink
SchemaPrinter::printChildrenBlock() will not detect multiline.
Browse files Browse the repository at this point in the history
  • Loading branch information
LastDragon-ru committed Nov 20, 2021
1 parent 2a359c0 commit 7c7e24d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Utils/SchemaPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -651,14 +651,12 @@ protected static function printValue($value, array $options, string $indentation
/**
* @param array<string> $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++) {
Expand Down

0 comments on commit 7c7e24d

Please sign in to comment.