Symfony version(s) affected
7.2, 7.3
Description
It appears that fix #59761 was not merged all the way to 7.2 and 7.3, there is a code that is missing. The code should work with variable $hookedProperties, as in 6.4, but in 7.2 and 7.3 the variable is only created and not used later in code.
https://github.com/symfony/symfony/blame/7.3/src/Symfony/Component/VarExporter/Internal/LazyObjectRegistry.php#L69
How to reproduce
Covered in tests of the pull request.
Possible Solution
No response
Additional Context
No response