[REQ][PHP][SYMFONY] Upgrade php-symfony code generation to work witH Symfony6
Created by: sensorario
Is your feature request related to a problem? Please describe.
Code generate for symfony is not fully compatible with Symfony6 and/or php8.1. Some little hacks/workarounds are mandatory to use generated code in sf6.
Describe the solution you'd like
I would apply here the udpdates I am using to fix the problem. I am already using this generator with some fixes. I would like to create a pull request here and stop to use my workaround.
Describe alternatives you've considered
I've considered the alternative to just open an issue and stay until someone solve this problem.
Additional context
Not actually. I would like to open the pull request and start to contribute to the php part of this project.