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)
Thank you @TomasVotruba, I’ll test it when it comes out 🙂
@Wirone could you verify if latest dev-main https://github.com/rectorphp/rector/commit/79315b7df208e62a263c0d56ff0e9daee652c9e6#diff-d11e2b9e464a2d6711842693ee58d997e7d238e803fbbe33cea332ece518159e resolve it? Thank you.
The
Client
(symfony-http-kernel) of 4.4.40 class for reference: https://github.com/symfony/http-kernel/blob/v4.4.40/Client.phpThe
AbstractBrwoser
(symfony/browser-kit) of 4.4.37 https://github.com/symfony/browser-kit/blob/v4.4.37/AbstractBrowser.phpThis Symfony BC break might be related: https://github.com/symfony/browser-kit/commit/3fa7d8cbd2e5006038a09b8ef93f3859a89b627e