Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

monteiro/serializer-pr37087

Open more actions menu

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.