Skip to content

Commit

Permalink
The provided commit message does not match the diff.
Browse files Browse the repository at this point in the history
Here is the correct commit message based on the provided diff:

Add new ignored attributes in MediaNormalizer

New attributes like 'lazyObjectState', 'lazyObjectInitialized', 'lazyObjectAsInitialized', 'statusList' and 'metadataValue' have been added
  • Loading branch information
ychadwick committed Feb 21, 2024
1 parent 9054a69 commit 75a51d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Serializer/MediaNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ public function normalize(
): array|string|int|float|bool|\ArrayObject|null {
if ($object instanceof $this->mediaClass) {
$context[AbstractNormalizer::IGNORED_ATTRIBUTES] = [
'lazyObjectState',
'lazyObjectInitialized',
'lazyObjectAsInitialized',
'statusList',
'metadataValue',
'statusList',
'__initializer__',
'__cloner__',
'__isInitialized__', ];
Expand Down

0 comments on commit 75a51d0

Please sign in to comment.