- Issue created by @prudloff
With Drupal 11, the settings form triggers this error:
[Wed Jun 18 23:15:17.854113 2025] [php:notice] [pid 1061324] [client 127.0.0.1:37672] Uncaught PHP Exception ArgumentCountError: "Too few arguments to function Drupal\\Core\\Form\\ConfigFormBase::__construct(), 1 passed in /home/pierre/www/drupal/web/modules/contrib/disable_login/src/Form/SettingsForm.php on line 33 and exactly 2 expected" at /home/pierre/www/drupal/web/core/lib/Drupal/Core/Form/ConfigFormBase.php line 44, referer: http://localhost/drupal/web/admin/modules
Install the module on Drupal 11.
Browse to /admin/config/security/disable-login.
SettingsForm::__construct() should probably pass the config.typed service to the parent constructor.
Active
1.1
Code