The documentation comment for HtmlFormController::__construct() is the following one.

  /**
   * Constructs a new \Drupal\Core\Routing\Enhancer\FormEnhancer object.
   *
   * @param \Symfony\Component\HttpKernel\Controller\ArgumentResolverInterface $argument_resolver
   *   The argument resolver.
   * @param \Drupal\Core\Form\FormBuilderInterface $form_builder
   *   The form builder.
   * @param \Drupal\Core\DependencyInjection\ClassResolverInterface $class_resolver
   *   The class resolver.
   */

The class isn't \Drupal\Core\Routing\Enhancer\FormEnhancer, but \Drupal\Core\Controller\HtmlFormController and that comment needs to be fixed.

CommentFileSizeAuthor
#4 updated-comment-3295487-3.patch673 bytesanjali rathod

Comments

apaderno created an issue. See original summary.

avpaderno’s picture

I linked to the documentation page for Drupal 9.4.x, but the same documentation comment is used in Drupal 9.5.x (and Drupal 10.x).

anjali rathod’s picture

Assigned: Unassigned » anjali rathod
anjali rathod’s picture

Assigned: anjali rathod » Unassigned
Status: Active » Needs review
StatusFileSize
new673 bytes
avpaderno’s picture

Status: Needs review » Reviewed & tested by the community

The patch is good to go.

catch’s picture

Version: 9.5.x-dev » 9.4.x-dev
Status: Reviewed & tested by the community » Fixed

Committed/pushed to 10.1.x, cherry-picked back to 9.4.x, thanks!

  • catch committed c6f1737 on 10.0.x
    Issue #3295487 by Anjali Rathod, apaderno: HtmlFormController's...
  • catch committed 7c98179 on 10.1.x
    Issue #3295487 by Anjali Rathod, apaderno: HtmlFormController's...
  • catch committed 1b0f5ee on 9.4.x
    Issue #3295487 by Anjali Rathod, apaderno: HtmlFormController's...
  • catch committed 27f361b on 9.5.x
    Issue #3295487 by Anjali Rathod, apaderno: HtmlFormController's...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.