Skip to content

Commit cf52ea4

Browse files
Rename method
1 parent fb1789f commit cf52ea4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Util/Exporter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ final class Exporter
2020
{
2121
public static function export(mixed $value, bool $exportObjects = false): string
2222
{
23-
if (self::isScalarOrNullOrArrayOfScalars($value) || $exportObjects) {
23+
if (self::isExportable($value) || $exportObjects) {
2424
return (new \SebastianBergmann\Exporter\Exporter)->export($value);
2525
}
2626

2727
return '{enable export of objects to see this value}';
2828
}
2929

30-
private static function isScalarOrNullOrArrayOfScalars(mixed &$value, Context $context = null): bool
30+
private static function isExportable(mixed &$value, Context $context = null): bool
3131
{
3232
if (is_scalar($value) || $value === null) {
3333
return true;
@@ -49,7 +49,7 @@ private static function isScalarOrNullOrArrayOfScalars(mixed &$value, Context $c
4949
$context->add($value);
5050

5151
foreach ($array as &$_value) {
52-
if (!self::isScalarOrNullOrArrayOfScalars($_value, $context)) {
52+
if (!self::isExportable($_value, $context)) {
5353
return false;
5454
}
5555
}

0 commit comments

Comments
 (0)