symfony: [VarExporter] Error in LazyGhostTrait with Symfony 6.4.0

Symfony version(s) affected

6.4.0

Description

Ran into this issue today while running a Symfony command that uses a service marked as lazy: true

Screenshot from 2023-11-29 12-49-11

How to reproduce

I don’t have a reproducer yet 😕 … will try to come up with something later today.

Possible Solution

No response

Additional Context

Seems to be caused by https://github.com/symfony/symfony/pull/52762/files potentially?

cc @nicolas-grekas

About this issue

  • Original URL
  • State: closed
  • Created 7 months ago
  • Reactions: 6
  • Comments: 21 (14 by maintainers)

Commits related to this issue

Most upvoted comments

Just another confirmation the issue is fixed after the upgrade from 6.4 RC to stable.

I tripped this error after updating to the latest 6.4. RC was never on my machine. Is it fixed in 6.4.0, or not? #52797 doesn’t seem to be part of 6.4.x.

I meant it worked fine on RC but I hit it on stable and the PR fixed it. No idea why I couldn’t communicate that well this morning 😅

@nicolas-grekas yes that solves it 🚀 thanks a lot

When it will be backported to 7.0.0?