We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the stub file AbstractController.stubphp for Symfony 6, the following code is wrong:
AbstractController.stubphp
public function createForm(string $type, $data = null, array $options = []): FormInterface {}
The visibility of the AbstractController must be protected instead of public.
AbstractController
protected
public
When we override the function in a controller, pslam complains with the following error:
OverriddenMethodAccess: Method App\Controller\AbstractController::createForm has different access level...
It is simply a matter of changing the visibility in the AbstractController.stubphp file:
protected function createForm(string $type, $data = null, array $options = []): FormInterface {}
The text was updated successfully, but these errors were encountered:
https://github.com/psalm/psalm-plugin-symfony/issues/313
03675dc
Successfully merging a pull request may close this issue.
In the stub file
AbstractController.stubphp
for Symfony 6, the following code is wrong:The visibility of the
AbstractController
must beprotected
instead ofpublic
.When we override the function in a controller, pslam complains with the following error:
OverriddenMethodAccess: Method App\Controller\AbstractController::createForm has different access level...
It is simply a matter of changing the visibility in the
AbstractController.stubphp
file:The text was updated successfully, but these errors were encountered: