server icon indicating copy to clipboard operation
server copied to clipboard

fix: Correctly ignore lazy ghost initialization in debug warning about direct constructor call

Open come-nc opened this issue 7 months ago • 0 comments

  • Resolves: #53463

Summary

It appears that ReflectionClass does not appear in the trace in the end, so we need to match the closure to be sure we’re fine. I use preg_match so that it does not break when the line number of the closure changes.

Checklist

come-nc avatar Jun 16 '25 10:06 come-nc