Problem/Motivation

ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in /app/modules/contrib/hubspot/src/Form/AdminSettings.php on line 43 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 44 of core/lib/Drupal/Core/Form/ConfigFormBase.php).

Steps to reproduce

Visit admin/config/services/hubspot, gets error

Proposed resolution

Fix parent constructor.

CommentFileSizeAuthor
#2 argumentcounterror-3536548-2.patch1.32 KBmonymirza

Comments

monymirza created an issue. See original summary.

monymirza’s picture

Status: Active » Needs review
StatusFileSize
new1.32 KB

  • richgerdes committed 9648cf08 on 3.x
    [#3536548] bug: ArgumentCountError: Too few arguments
    
    By: monymirza
    
richgerdes’s picture

Status: Needs review » Fixed

@monymirza, thanks for the patch! This is a good fix. I like using the create this way.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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