Issue #3641402: Deprecate returning a value from FormInterface::submitForm()

Resolves #3641402: Deprecate returning a value from FormInterface::submitForm()

  • Added @return void docblock to \Drupal\Core\Form\FormInterface::submitForm().
  • Removed redundant return statements from core forms implementing submitForm() (FilterFormatAddForm, FilterFormatEditForm, FilterFormatFormBase, FormTestInputForgeryForm).
  • Removed all 182 missingType.return baseline violations from core/.phpstan-baseline.php.

Closes #3641402


AI Disclosure: Code, tests, and MR description were drafted with the assistance of an AI tool (Antigravity/LLM), and manually verified and tested.

Edited by Keerthi Kumar

Merge request reports

Loading
Loading