Skip to content

dd() hangs after first call when installing symfony/validator in fresh project #845

@MarStefo

Description

@MarStefo

Hi everyone,

I’ve run into a strange issue and I’d like to check if anyone else has experienced the same problem (and possibly solved it).

Steps to reproduce:

  • Clone a fresh Symfony project from GitHub.
  • Install the required Symfony components (symfony/twig-bundle, composer require symfony/orm-pack, composer require --dev symfony/maker-bundle, composer require --dev symfony/var-dumper)
  • Run composer require symfony/validator.
  • Use dd() in a controller or route.

What happens:

  • On the first request, dd() works as expected.
  • On subsequent requests to the same page, the browser keeps loading indefinitely.
  • The PHP container is still running and responds, so it doesn’t crash entirely.
  • If I replace dd() with var_dump(), everything works fine — the issue seems to be related specifically to dd() (and die()).

Expected behavior:

  • dd() should dump the variable and stop execution consistently, without causing hangs on following requests.

Has anyone else run into this issue after requiring symfony/validator?
If needed, I can upload additional files (composer.json, Symfony config, Docker setup, etc.) to help debug the problem.

Thanks in advance! 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions