scope () and strict false do not seem to be working?
I have a php serialized classes that I need to unserialize in my nodejs app. When I unserialize with unserialize(message, { scope: {}, strict: false }); I am still gettin the following error:
AssertionError [ERR_ASSERTION]: Class App\Models\Account\Service not found in given scope
Same issue. Not sure how to add such a class to the scope 🤔
Hi @chorton and @jesper-bylund. Based on the code snippet shared, it seems you are not passing in the arguments correctly. Instead of combining scope and strict into a single object, we have to pass them separately.
It would look like this: unserialize(message, {}, {strict: false})
Please try the above and let me know how it goes