Skip to content
New issue

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

Validate FormBuilderInterface::getForm() arguments by inspecting form class #749

Open
andriokha opened this issue Apr 28, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@andriokha
Copy link
Contributor

Feature request

While https://www.drupal.org/node/3432087 should improve phpstan processing of FormBuilderInterface::getForm(), it'd be great if we could use the first argument to look up what other arguments are valid.

For example when analyzing the following

$this->formBuilder->getForm(EntityModerationForm::class, $entity);

The correct number and types of arguments can be found by inspecting EntityModerationForm::buildForm().

@andriokha andriokha added the enhancement New feature or request label Apr 28, 2024
@nlighteneddesign
Copy link
Contributor

This may also be relevant: https://www.drupal.org/project/drupal/issues/3431285

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants