Skip to content

Commit ded3d21

Browse files
herndlmondrejmirtes
authored andcommitted
Avoid describing ConstantArrayType values twice
1 parent 843ebbb commit ded3d21

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Type/Constant/ConstantArrayType.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,8 +758,9 @@ public function describe(VerbosityLevel $level): string
758758
}
759759
}
760760

761-
$items[] = sprintf('%s%s: %s', $keyDescription, $isOptional ? '?' : '', $valueType->describe($level));
762-
$values[] = $valueType->describe($level);
761+
$valueTypeDescription = $valueType->describe($level);
762+
$items[] = sprintf('%s%s: %s', $keyDescription, $isOptional ? '?' : '', $valueTypeDescription);
763+
$values[] = $valueTypeDescription;
763764
}
764765

765766
$append = '';

0 commit comments

Comments
 (0)