- 🇦🇺Australia taggartj
Strangest thing using 8.x-1.10
2 environments same code base:one php 8.0.28 (does error) vs other has 8.0.29 (does not error)
ArgumentCountError: Too few arguments to function Drupal\captcha\Service\CaptchaService::__construct(), 0 passed in /var/www/html/public/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 and exactly 1 expected in Drupal\captcha\Service\CaptchaService->__construct() (line 28 of /var/www/html/public/modules/contrib/captcha/src/Service/CaptchaService.php) #0 /var/www/html/public/core/lib/Drupal/Component/DependencyInjection/Container.php(259): Drupal\captcha\Service\CaptchaService->__construct() #1 /var/www/html/public/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService(Array, 'captcha.helper') #2 /var/www/html/public/core/lib/Drupal.php(207): Drupal\Component\DependencyInjection\Container->get('captcha.helper') #3 /var/www/html/public/modules/contrib/captcha/captcha.module(169): Drupal::service('captcha.helper') #4 /var/www/html/public/core/lib/Drupal/Core/Extension/ModuleHandler.php(562): captcha_form_alter(Array, Object(Drupal\Core\Form\FormState), 'views_exposed_f...')
however it still works ?!? and no amount of cache clears help
and drush php-eval "dump(Drupal::getContainer()->has('captcha.helper'));" = true