This commit is contained in:
parent
f0a267833b
commit
ec1990caf8
|
|
@ -71,11 +71,13 @@ final readonly class Exporter
|
|||
/* @noinspection UnusedFunctionResultInspection */
|
||||
$processed->add($data);
|
||||
|
||||
$i = 0;
|
||||
$i = 0;
|
||||
$count = count($data, COUNT_RECURSIVE);
|
||||
|
||||
foreach ($array as $key => $value) {
|
||||
if ($count > self::MAX_SHORTENED_ITEMS && $i > self::MAX_SHORTENED_ITEMS) {
|
||||
$result[] = sprintf('...%d more elements', $count - 10);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -322,6 +322,7 @@ EOF,
|
|||
public static function shortenedRecursiveExportProvider(): array
|
||||
{
|
||||
$bigArray = [];
|
||||
|
||||
for ($i = 0; $i < 20_000; $i++) {
|
||||
$bigArray[] = 'cast(\'foo' . $i . '\' as blob)';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue