schmittjoh / serializer

Library for (de-)serializing data of any complexity (supports JSON, and XML)
http://jmsyst.com/libs/serializer
MIT License
2.32k stars 588 forks source link

Undefined property: JsonDeserializationVisitor::$navigator sence version 3.23 #1509

Open SergeC opened 1 year ago

SergeC commented 1 year ago
Q A
Bug report? yes
Feature request? no
BC Break report? yes
RFC? no

Since version 3.23 I'm getting warning that crashes all my API's: Warning: Undefined property: JMS\Serializer\JsonDeserializationVisitor::$navigator

Expected Result

Actual Result

scyzoryck commented 1 year ago

Hi! I guess it is caused by the memory leaks fixes. Could you provide any example of the code that is failing, with the full error log stack, please? Without it providing any help will be difficult.

Best scyzoryck

rproskuriakov commented 5 months ago

Faced the same one in SubscribingHandlerInterface. Indeed related to memory leak fixes as I was able to fix that error by commenting out unset \JMS\Serializer\JsonDeserializationVisitor::getResult. For temporary solution inside subscription handler the temporary fix is: $context->getVisitor()->setNavigator($context->getNavigator());

Please note that my issue was about deserialization