rector: Rector fails with `Class Symfony\Component\BrowserKit\AbstractBrowser not found`

Bug Report

Subject Details
Rector version 0.12.21

When we run analysis with vendor/bin/rector process --no-progress-bar <file_paths> --dry-run (in CI, but I was able to reproduce it locally too), we get:

In RuntimeReflectionProvider.php line 185:

  Class Symfony\Component\BrowserKit\AbstractBrowser not found.

It’s weird, because we don’t use AbstractBrowser anywhere in our codebase, the only occurrences are in vendor dir.

Let me know if I can check something to help you with finding the root cause.

Minimal PHP Code Causing Issue

I can’t reproduce it on demo site, it is probably strictly related to our app, its dependencies and the way how we run Rector.

Expected Behaviour

To not fail 😉

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 24 (24 by maintainers)

Most upvoted comments