https://github.com/monteiro/serializer-pr37087
https://github.com/symfony/symfony/pull/37087
https://github.com/monteiro/serializer-pr37087
Last synced: 12 months ago
JSON representation
https://github.com/symfony/symfony/pull/37087
- Host: GitHub
- URL: https://github.com/monteiro/serializer-pr37087
- Owner: monteiro
- License: mit
- Created: 2020-06-04T09:43:12.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-21T14:07:57.000Z (almost 6 years ago)
- Last Synced: 2025-06-22T01:14:02.897Z (12 months ago)
- Language: PHP
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# symfony 5.2
This is a sample project where we can the bug and the fix.
| Q | A
| ------------- | ---
| Branch? | 5.2
| Bug fix? | yes
| New feature? | yes
| Deprecations? | no
| Tickets | Fix #32719 ...
| License | MIT
I have just duplicated the PR https://github.com/symfony/symfony/pull/33650 (from @skalpa) but using the new component ErrorHandler and removing the priority.
### How to reproduce the bug?
```
docker-compose up
bin/console messenger:consume external_messages
bin/console app:event:test
bin/console messenger:failed:retry -vvv
```
```
In PropertyAccessor.php line 201:
[Symfony\Component\PropertyAccess\Exception\InvalidArgumentException]
Expected argument of type "Symfony\Component\Debug\Exception\FlattenException", "null" given at property path "previous".
```
### Solution
- Create a FlattenException Normalizer into the Serializer Component.
- Take into account that in this specific case the headers (in AMQP) are saved as json (because we are using the symfony serializer json format instead of the default php serializer).