Skip to content

Commit 0b71586

Browse files
Sztigkonradoboza
andauthored
IBX-9678: JsonSerializableNormalizer return type mismatch causing 500 error (#160)
* added array as a possible return type * added tests for the array return with a dummy "MoneyObject" * fix-cs * phpstan fix * fixed test * removed JsonSerializableNormalizer in favour of Symfony counterpart * cr remark --------- Co-authored-by: konradoboza <[email protected]>
1 parent 1360ad6 commit 0b71586

File tree

2 files changed

+2
-44
lines changed

2 files changed

+2
-44
lines changed

src/bundle/Resources/config/serializer.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ services:
2929
tags:
3030
- { name: ibexa.rest.serializer.normalizer, priority: -400 }
3131

32-
Ibexa\Rest\Output\Normalizer\JsonSerializableNormalizer:
32+
ibexa.rest.serializer.json_serializable_normalizer:
33+
class: Symfony\Component\Serializer\Normalizer\JsonSerializableNormalizer
3334
tags:
3435
- { name: ibexa.rest.serializer.normalizer, priority: -600 }
3536

src/lib/Output/Normalizer/JsonSerializableNormalizer.php

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)