You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to develop a plugin in PHP 8.2 and Symfony 6.3 and want to downgrade it to PHP 7.4 using rector. For the application code it works fine, but I'm having a problem with some vendor classes (only Symfony classes). The error message is Could not process "/project-dir/downgrade-build/vendor/symfony/dependency-injection/ServiceLocator.php" file, due to: "System error: "Call to a member function resolveScope() on null"
I can't find a issue related to calling the resolveScope function.
Thank you very much @samsonasik 👍
Rector processes now without any errors.
The downgraded Symfony has now some errors I need to investigate them i.e. the hash algorithm xxh128 which was introduced in PHP 8.1 is not available. I will try to create a new Rector downgrade rule for it.
Bug Report
I'm trying to develop a plugin in PHP 8.2 and Symfony 6.3 and want to downgrade it to PHP 7.4 using rector. For the application code it works fine, but I'm having a problem with some vendor classes (only Symfony classes). The error message is
Could not process "/project-dir/downgrade-build/vendor/symfony/dependency-injection/ServiceLocator.php" file, due to: "System error: "Call to a member function resolveScope() on null"
I can't find a issue related to calling the resolveScope function.
This error occurs in the following classes
Minimal PHP Code Causing Issue
I've copied the
symfony/http-kernel/Controller/ArgumentResolver/ServiceValueResolver.php
to the demo.The demo shows a different error to the one on my console: https://getrector.com/demo/dad0434f-b917-495d-8536-83b1f938a78b
Expected Behaviour
No error.
The text was updated successfully, but these errors were encountered: