Config form throws ArgumentCountError

Created on 4 April 2025, 15 days ago

Problem/Motivation

When I try to configure this module, it throws an error.

Steps to reproduce

1: Install the "Discord Notifications" using the following command:
composer require 'drupal/discord_notifications:^1.0'

2: Navigate to /admin/config/system/discord-notifications.

3: The following error appears:

ArgumentCountError: Too few arguments to function Drupal\Core\Form\ConfigFormBase::__construct(), 1 passed in D:\laragon\www\mydatabase_11\web\modules\contrib\discord_notifications\src\Form\DiscordNotificationsSettingsForm.php on line 32 and exactly 2 expected in Drupal\Core\Form\ConfigFormBase->__construct() (line 44 of core\lib\Drupal\Core\Form\ConfigForm

Note: I am using Drupal 11 with PHP 8.3.19 version.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India adityarawat_ln

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024