Thanks to visit codestin.com
Credit goes to github.com

Skip to content

monteiro/serializer-pr37087

Repository files navigation

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 symfony/symfony#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).

Releases

No releases published

Packages

No packages published

Languages