From 17fe771a65ed261585f0d7e3e8726198325dd069 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dalibor=20Karlovi=C4=87?= Date: Tue, 2 Jul 2024 10:31:28 +0200 Subject: [PATCH] Reenable classmap tweak --- Generator/NormalizerGenerator.php | 10 ++--- .../Normalizer/JaneObjectNormalizer.php | 14 ++++++- .../Normalizer/JaneObjectNormalizer.php | 18 ++++++++- .../Normalizer/JaneObjectNormalizer.php | 38 ++++++++++++++++++- .../Normalizer/JaneObjectNormalizer.php | 18 ++++++++- .../Normalizer/JaneObjectNormalizer.php | 14 ++++++- .../Normalizer/JaneObjectNormalizer.php | 14 ++++++- .../Normalizer/JaneObjectNormalizer.php | 14 ++++++- .../Normalizer/JaneObjectNormalizer.php | 14 ++++++- .../Normalizer/JaneObjectNormalizer.php | 14 ++++++- .../Normalizer/JaneObjectNormalizer.php | 14 ++++++- .../Normalizer/JaneObjectNormalizer.php | 18 ++++++++- .../Normalizer/JaneObjectNormalizer.php | 22 ++++++++++- .../Normalizer/JaneObjectNormalizer.php | 14 ++++++- .../Normalizer/JaneObjectNormalizer.php | 14 ++++++- .../Normalizer/JaneObjectNormalizer.php | 22 ++++++++++- .../Normalizer/JaneObjectNormalizer.php | 14 ++++++- .../Normalizer/JaneObjectNormalizer.php | 10 ++++- .../Normalizer/JaneObjectNormalizer.php | 10 ++++- .../Normalizer/JaneObjectNormalizer.php | 14 ++++++- .../Normalizer/JaneObjectNormalizer.php | 18 ++++++++- .../Normalizer/JaneObjectNormalizer.php | 14 ++++++- .../Normalizer/JaneObjectNormalizer.php | 14 ++++++- .../Normalizer/JaneObjectNormalizer.php | 14 ++++++- .../Normalizer/JaneObjectNormalizer.php | 18 ++++++++- .../Normalizer/JaneObjectNormalizer.php | 14 ++++++- .../Normalizer/JaneObjectNormalizer.php | 14 ++++++- .../Normalizer/JaneObjectNormalizer.php | 14 ++++++- .../Normalizer/JaneObjectNormalizer.php | 18 ++++++++- 29 files changed, 396 insertions(+), 62 deletions(-) diff --git a/Generator/NormalizerGenerator.php b/Generator/NormalizerGenerator.php index fe8ffe5..23a468b 100644 --- a/Generator/NormalizerGenerator.php +++ b/Generator/NormalizerGenerator.php @@ -7,6 +7,7 @@ use Jane\Component\JsonSchema\Generator\Normalizer\JaneObjectNormalizerGenerator; use Jane\Component\JsonSchema\Generator\Normalizer\NormalizerGenerator as NormalizerGeneratorTrait; use Jane\Component\JsonSchema\Registry\Schema; +use PhpParser\Comment; use PhpParser\Node\Arg; use PhpParser\Node\Expr; use PhpParser\Node\Identifier; @@ -181,18 +182,15 @@ function ($key, $value) { new Expr\ClassConstFetch( new Name\FullyQualified($key), new Identifier('class') - ) + ), + attributes: ['comments' => [new Comment('')]] ); }, array_keys($normalizers), $normalizers, - ) + ), ) ); - if (isset($propertyStmt->default->items[0]) && $propertyStmt->default->items[0] instanceof Expr\ArrayItem) { - // force the array to be dumped multiline by adding a comment - $propertyStmt->default->items[0]->setAttribute('comments', [new \PhpParser\Comment('')]); - } $properties[] = new Stmt\PropertyProperty('normalizersCache', new Expr\Array_()); $methods = []; diff --git a/JsonSchema/Normalizer/JaneObjectNormalizer.php b/JsonSchema/Normalizer/JaneObjectNormalizer.php index 68dea61..a3c0f26 100644 --- a/JsonSchema/Normalizer/JaneObjectNormalizer.php +++ b/JsonSchema/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\JsonSchema\Model\JsonSchema::class => \Jane\Component\JsonSchema\JsonSchema\Normalizer\JsonSchemaNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\JsonSchema\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\JsonSchema\Model\JsonSchema::class => \Jane\Component\JsonSchema\JsonSchema\Normalizer\JsonSchemaNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\JsonSchema\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +68,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\JsonSchema\Model\JsonSchema::class => \Jane\Component\JsonSchema\JsonSchema\Normalizer\JsonSchemaNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\JsonSchema\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\JsonSchema\Model\JsonSchema::class => \Jane\Component\JsonSchema\JsonSchema\Normalizer\JsonSchemaNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\JsonSchema\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/additional-properties/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/additional-properties/expected/Normalizer/JaneObjectNormalizer.php index 8056301..20ec1b0 100644 --- a/Tests/fixtures/additional-properties/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/additional-properties/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,14 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\AdditionalProperties::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\AdditionalPropertiesNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\PatternProperties::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\PatternPropertiesNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\AdditionalProperties::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\AdditionalPropertiesNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\PatternProperties::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\PatternPropertiesNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +70,14 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\AdditionalProperties::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\AdditionalPropertiesNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\PatternProperties::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\PatternPropertiesNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\AdditionalProperties::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\AdditionalPropertiesNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\PatternProperties::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\PatternPropertiesNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/all-of/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/all-of/expected/Normalizer/JaneObjectNormalizer.php index 077d2b6..c7daf8e 100644 --- a/Tests/fixtures/all-of/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/all-of/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,24 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\Otherchildtype::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\OtherchildtypeNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\Childtype::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\ChildtypeNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\Parenttype::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\ParenttypeNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\Bar::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\BarNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\Baz::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\BazNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\BazBaz::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\BazBazNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\Otherchildtype::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\OtherchildtypeNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\Childtype::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\ChildtypeNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\Parenttype::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\ParenttypeNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\Bar::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\BarNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\Baz::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\BazNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\BazBaz::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\BazBazNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +80,24 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\Otherchildtype::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\OtherchildtypeNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\Childtype::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\ChildtypeNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\Parenttype::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\ParenttypeNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\Bar::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\BarNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\Baz::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\BazNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\BazBaz::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\BazBazNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\Otherchildtype::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\OtherchildtypeNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\Childtype::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\ChildtypeNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\Parenttype::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\ParenttypeNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\Bar::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\BarNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\Baz::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\BazNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\BazBaz::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\BazBazNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/array-object-nullable/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/array-object-nullable/expected/Normalizer/JaneObjectNormalizer.php index 3df28c2..a854a86 100644 --- a/Tests/fixtures/array-object-nullable/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/array-object-nullable/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,14 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Document::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\DocumentNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\Attributes::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\AttributesNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Document::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\DocumentNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\Attributes::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\AttributesNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +70,14 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Document::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\DocumentNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\Attributes::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\AttributesNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Document::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\DocumentNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\Attributes::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\AttributesNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/date-format/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/date-format/expected/Normalizer/JaneObjectNormalizer.php index be5b8be..bba8f95 100644 --- a/Tests/fixtures/date-format/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/date-format/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +68,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/date/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/date/expected/Normalizer/JaneObjectNormalizer.php index be5b8be..bba8f95 100644 --- a/Tests/fixtures/date/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/date/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +68,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/datetime-format/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/datetime-format/expected/Normalizer/JaneObjectNormalizer.php index be5b8be..bba8f95 100644 --- a/Tests/fixtures/datetime-format/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/datetime-format/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +68,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/datetime-interface/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/datetime-interface/expected/Normalizer/JaneObjectNormalizer.php index be5b8be..bba8f95 100644 --- a/Tests/fixtures/datetime-interface/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/datetime-interface/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +68,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/datetime-no-format/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/datetime-no-format/expected/Normalizer/JaneObjectNormalizer.php index be5b8be..bba8f95 100644 --- a/Tests/fixtures/datetime-no-format/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/datetime-no-format/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +68,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/datetime/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/datetime/expected/Normalizer/JaneObjectNormalizer.php index be5b8be..bba8f95 100644 --- a/Tests/fixtures/datetime/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/datetime/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +68,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/deep-object/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/deep-object/expected/Normalizer/JaneObjectNormalizer.php index 291150c..8847fe7 100644 --- a/Tests/fixtures/deep-object/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/deep-object/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,14 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\TestFooItem::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestFooItemNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\TestFooItem::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestFooItemNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +70,14 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\TestFooItem::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestFooItemNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\TestFooItem::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestFooItemNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/definitions/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/definitions/expected/Normalizer/JaneObjectNormalizer.php index 6b03ac2..8053ac9 100644 --- a/Tests/fixtures/definitions/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/definitions/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,16 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\BarItem::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\BarItemNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\HelloWorld::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\HelloWorldNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\BarItem::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\BarItemNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\HelloWorld::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\HelloWorldNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +72,16 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\BarItem::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\BarItemNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\HelloWorld::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\HelloWorldNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\BarItem::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\BarItemNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\HelloWorld::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\HelloWorldNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/deprecated/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/deprecated/expected/Normalizer/JaneObjectNormalizer.php index 0ec5751..74c1f0e 100644 --- a/Tests/fixtures/deprecated/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/deprecated/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +68,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/disabled-strict-required/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/disabled-strict-required/expected/Normalizer/JaneObjectNormalizer.php index 7d57d02..ab8c43c 100644 --- a/Tests/fixtures/disabled-strict-required/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/disabled-strict-required/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Nullable::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\NullableNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Nullable::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\NullableNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +68,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Nullable::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\NullableNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Nullable::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\NullableNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/dollarDefs/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/dollarDefs/expected/Normalizer/JaneObjectNormalizer.php index 0fb69d2..3a2a5a2 100644 --- a/Tests/fixtures/dollarDefs/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/dollarDefs/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,16 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, \Jane\JsonSchema\Tests\Expected\Model\BarItem::class => \Jane\JsonSchema\Tests\Expected\Normalizer\BarItemNormalizer::class, \Jane\JsonSchema\Tests\Expected\Model\HelloWorld::class => \Jane\JsonSchema\Tests\Expected\Normalizer\HelloWorldNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, + + \Jane\JsonSchema\Tests\Expected\Model\BarItem::class => \Jane\JsonSchema\Tests\Expected\Normalizer\BarItemNormalizer::class, + + \Jane\JsonSchema\Tests\Expected\Model\HelloWorld::class => \Jane\JsonSchema\Tests\Expected\Normalizer\HelloWorldNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +72,16 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, \Jane\JsonSchema\Tests\Expected\Model\BarItem::class => \Jane\JsonSchema\Tests\Expected\Normalizer\BarItemNormalizer::class, \Jane\JsonSchema\Tests\Expected\Model\HelloWorld::class => \Jane\JsonSchema\Tests\Expected\Normalizer\HelloWorldNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, + + \Jane\JsonSchema\Tests\Expected\Model\BarItem::class => \Jane\JsonSchema\Tests\Expected\Normalizer\BarItemNormalizer::class, + + \Jane\JsonSchema\Tests\Expected\Model\HelloWorld::class => \Jane\JsonSchema\Tests\Expected\Normalizer\HelloWorldNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/multi-files/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/multi-files/expected/Normalizer/JaneObjectNormalizer.php index 4a2ad34..cd32a7f 100644 --- a/Tests/fixtures/multi-files/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/multi-files/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\TestFoo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestFooNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\TestFoo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestFooNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +68,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\TestFoo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestFooNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\TestFoo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestFooNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/multi-namespace/expected/Schema1/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/multi-namespace/expected/Schema1/Normalizer/JaneObjectNormalizer.php index 7848efa..34f7af5 100644 --- a/Tests/fixtures/multi-namespace/expected/Schema1/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/multi-namespace/expected/Schema1/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,10 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Schema1\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Schema1\Normalizer\TestNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Schema1\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Schema1\Normalizer\TestNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +66,10 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Schema1\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Schema1\Normalizer\TestNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Schema1\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Schema1\Normalizer\TestNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/multi-namespace/expected/Schema2/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/multi-namespace/expected/Schema2/Normalizer/JaneObjectNormalizer.php index 32f31e7..f97f4ed 100644 --- a/Tests/fixtures/multi-namespace/expected/Schema2/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/multi-namespace/expected/Schema2/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,10 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Schema2\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Schema2\Normalizer\FooNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Schema2\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Schema2\Normalizer\FooNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +66,10 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Schema2\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Schema2\Normalizer\FooNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Schema2\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Schema2\Normalizer\FooNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/name-conflict/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/name-conflict/expected/Normalizer/JaneObjectNormalizer.php index be5b8be..bba8f95 100644 --- a/Tests/fixtures/name-conflict/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/name-conflict/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +68,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/one-of-nullable/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/one-of-nullable/expected/Normalizer/JaneObjectNormalizer.php index 022acc7..c7eca9e 100644 --- a/Tests/fixtures/one-of-nullable/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/one-of-nullable/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,14 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\Id::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\IdNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\Id::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\IdNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +70,14 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\Id::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\IdNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\Id::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\IdNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/one-of/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/one-of/expected/Normalizer/JaneObjectNormalizer.php index 0ec5751..74c1f0e 100644 --- a/Tests/fixtures/one-of/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/one-of/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +68,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/read-only/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/read-only/expected/Normalizer/JaneObjectNormalizer.php index 0ec5751..74c1f0e 100644 --- a/Tests/fixtures/read-only/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/read-only/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +68,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Foo::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\FooNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/reserved-words/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/reserved-words/expected/Normalizer/JaneObjectNormalizer.php index cf38749..66a8ff7 100644 --- a/Tests/fixtures/reserved-words/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/reserved-words/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\_List::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\ListNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\_List::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\ListNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +68,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\_List::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\ListNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\_List::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\ListNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/test-default/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/test-default/expected/Normalizer/JaneObjectNormalizer.php index 6cc9c80..2b21014 100644 --- a/Tests/fixtures/test-default/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/test-default/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,14 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\TestSubObject::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestSubObjectNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\TestSubObject::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestSubObjectNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +70,14 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\TestSubObject::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestSubObjectNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\TestSubObject::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestSubObjectNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/test-no-reference/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/test-no-reference/expected/Normalizer/JaneObjectNormalizer.php index c678ca2..a0fbd57 100644 --- a/Tests/fixtures/test-no-reference/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/test-no-reference/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\TestSubObject::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestSubObjectNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\TestSubObject::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestSubObjectNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +68,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchema\Tests\Expected\Model\TestSubObject::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestSubObjectNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchema\Tests\Expected\Model\TestSubObject::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestSubObjectNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/test-not-strict/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/test-not-strict/expected/Normalizer/JaneObjectNormalizer.php index be5b8be..bba8f95 100644 --- a/Tests/fixtures/test-not-strict/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/test-not-strict/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +68,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Test::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\TestNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/test-null/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/test-null/expected/Normalizer/JaneObjectNormalizer.php index 7d57d02..ab8c43c 100644 --- a/Tests/fixtures/test-null/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/test-null/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Nullable::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\NullableNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Nullable::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\NullableNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +68,12 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\Component\JsonSchema\Tests\Expected\Model\Nullable::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\NullableNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\Component\JsonSchema\Tests\Expected\Model\Nullable::class => \Jane\Component\JsonSchema\Tests\Expected\Normalizer\NullableNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\Component\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); diff --git a/Tests/fixtures/validator/expected/Normalizer/JaneObjectNormalizer.php b/Tests/fixtures/validator/expected/Normalizer/JaneObjectNormalizer.php index 2b22d45..b4e3be5 100644 --- a/Tests/fixtures/validator/expected/Normalizer/JaneObjectNormalizer.php +++ b/Tests/fixtures/validator/expected/Normalizer/JaneObjectNormalizer.php @@ -18,7 +18,14 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\JsonSchema\Tests\Expected\Model\ModelFooooooo::class => \Jane\JsonSchema\Tests\Expected\Normalizer\ModelFoooooooNormalizer::class, \Jane\JsonSchema\Tests\Expected\Model\FooFooFoo::class => \Jane\JsonSchema\Tests\Expected\Normalizer\FooFooFooNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\JsonSchema\Tests\Expected\Model\ModelFooooooo::class => \Jane\JsonSchema\Tests\Expected\Normalizer\ModelFoooooooNormalizer::class, + + \Jane\JsonSchema\Tests\Expected\Model\FooFooFoo::class => \Jane\JsonSchema\Tests\Expected\Normalizer\FooFooFooNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers); @@ -63,7 +70,14 @@ class JaneObjectNormalizer implements DenormalizerInterface, NormalizerInterface use NormalizerAwareTrait; use CheckArray; use ValidatorTrait; - protected $normalizers = [\Jane\JsonSchema\Tests\Expected\Model\ModelFooooooo::class => \Jane\JsonSchema\Tests\Expected\Normalizer\ModelFoooooooNormalizer::class, \Jane\JsonSchema\Tests\Expected\Model\FooFooFoo::class => \Jane\JsonSchema\Tests\Expected\Normalizer\FooFooFooNormalizer::class, \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class], $normalizersCache = []; + protected $normalizers = [ + + \Jane\JsonSchema\Tests\Expected\Model\ModelFooooooo::class => \Jane\JsonSchema\Tests\Expected\Normalizer\ModelFoooooooNormalizer::class, + + \Jane\JsonSchema\Tests\Expected\Model\FooFooFoo::class => \Jane\JsonSchema\Tests\Expected\Normalizer\FooFooFooNormalizer::class, + + \Jane\Component\JsonSchemaRuntime\Reference::class => \Jane\JsonSchema\Tests\Expected\Runtime\Normalizer\ReferenceNormalizer::class, + ], $normalizersCache = []; public function supportsDenormalization($data, $type, $format = null, array $context = []): bool { return array_key_exists($type, $this->normalizers);