Skip to content

Commit eb452ba

Browse files
committed
Rename JsonValuePrinter to JsonLikeValuePrinter
1 parent 9c8eb83 commit eb452ba

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Exception/Template.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use TypeLang\Mapper\Context\Path\Printer\JsonPathPrinter;
88
use TypeLang\Mapper\Context\Path\PathInterface;
99
use TypeLang\Mapper\Context\Path\Printer\PathPrinterInterface;
10-
use TypeLang\Mapper\Runtime\Value\JsonValuePrinter;
10+
use TypeLang\Mapper\Runtime\Value\JsonLikeValuePrinter;
1111
use TypeLang\Mapper\Runtime\Value\ValuePrinterInterface;
1212
use TypeLang\Parser\Node\Statement;
1313
use TypeLang\Parser\Node\Stmt\Shape\FieldNode;
@@ -54,7 +54,7 @@ private static function createDefaultPathPrinter(): PathPrinterInterface
5454

5555
private static function createDefaultValuePrinter(): ValuePrinterInterface
5656
{
57-
return new JsonValuePrinter();
57+
return new JsonLikeValuePrinter();
5858
}
5959

6060
/**

src/Runtime/Value/JsonValuePrinter.php renamed to src/Runtime/Value/JsonLikeValuePrinter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use TypeLang\Mapper\Type\Coercer\StringTypeCoercer;
88

9-
final class JsonValuePrinter implements ValuePrinterInterface
9+
final class JsonLikeValuePrinter implements ValuePrinterInterface
1010
{
1111
public const DEFAULT_MAX_ITEMS_COUNT = 3;
1212

tests/Type/TypeTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use TypeLang\Mapper\Runtime\Extractor\TypeExtractorInterface;
1111
use TypeLang\Mapper\Runtime\Parser\TypeParserInterface;
1212
use TypeLang\Mapper\Runtime\Repository\TypeRepositoryInterface;
13-
use TypeLang\Mapper\Runtime\Value\JsonValuePrinter;
13+
use TypeLang\Mapper\Runtime\Value\JsonLikeValuePrinter;
1414
use TypeLang\Mapper\Tests\TestCase;
1515
use TypeLang\Mapper\Tests\Type\Stub\IntBackedEnumStub;
1616
use TypeLang\Mapper\Tests\Type\Stub\StringBackedEnumStub;
@@ -36,7 +36,7 @@ final protected static function defaultMatchDataProviderSamples(): iterable
3636
*/
3737
final protected static function defaultCastDataProviderSamples(): iterable
3838
{
39-
$printer = new JsonValuePrinter();
39+
$printer = new JsonLikeValuePrinter();
4040

4141
foreach (self::defaultDataProviderSamples() as $value) {
4242
yield $value => new \ValueError(\sprintf(

0 commit comments

Comments
 (0)