Skip to content

Commit

Permalink
refactor: Deprecate serializer context.
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadi committed Feb 21, 2024
1 parent ff5ecdb commit f015d8f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
the current value in a dynamic property is a scalar.
* feat(`PresetMappingFactory`): Add `fromObjectCache()` and `fromObjectCacheReversed()`.
* chore: Simplify remembering mapper.
* refactor: Deprecate serializer context.

## 1.0.0

Expand Down
5 changes: 5 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@
<file name="src/Transformer/MainTransformerAwareTrait.php" />
<file name="src/Transformer/Implementation/ClassMethodTransformer.php" />
<file name="tests/IntegrationTest/MethodMapperTest.php" />
<file name="src/Transformer/Implementation/ArrayToObjectTransformer.php" />
<file name="src/Transformer/Implementation/ObjectToArrayTransformer.php" />
<file name="src/Serializer/AbstractSerializerContext.php" />
<file name="src/Serializer/DenormalizerContext.php" />
<file name="src/Serializer/NormalizerContext.php" />
</errorLevel>
</DeprecatedClass>
</issueHandlers>
Expand Down
1 change: 1 addition & 0 deletions src/Serializer/AbstractSerializerContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
/**
* @implements \ArrayAccess<string,mixed>
* @implements \IteratorAggregate<string,mixed>
* @deprecated
*/
abstract class AbstractSerializerContext implements
\ArrayAccess,
Expand Down
4 changes: 4 additions & 0 deletions src/Serializer/DenormalizerContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@

namespace Rekalogika\Mapper\Serializer;

/**
* @deprecated
* @phpstan-ignore-next-line
*/
class DenormalizerContext extends AbstractSerializerContext
{
}
4 changes: 4 additions & 0 deletions src/Serializer/NormalizerContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@

namespace Rekalogika\Mapper\Serializer;

/**
* @deprecated
* @phpstan-ignore-next-line
*/
class NormalizerContext extends AbstractSerializerContext
{
}

0 comments on commit f015d8f

Please sign in to comment.