Problem/Motivation
Warning on fresh new installation:
Warning: foreach() argument must be of type array|object, null given in Drupal\Core\Render\Element\Checkboxes::valueCallback() (line 113 of /Users/web/core/lib/Drupal/Core/Render/Element/Checkboxes.php)
#0 /Users/web/core/includes/bootstrap.inc(166): _drupal_error_handler_real(2, 'foreach() argum...', '/Users/...', 113)
#1 /Users/web/core/lib/Drupal/Core/Render/Element/Checkboxes.php(113): _drupal_error_handler(2, 'foreach() argum...', '/Users/...', 113)
#2 [internal function]: Drupal\Core\Render\Element\Checkboxes::valueCallback(Array, false, Object(Drupal\Core\Form\FormState))
#3 /Users/web/core/lib/Drupal/Core/Form/FormBuilder.php(1278): call_user_func_array(Array, Array)
#4 /Users/web/core/lib/Drupal/Core/Form/FormBuilder.php(999): Drupal\Core\Form\FormBuilder->handleInputElement('config_log_conf...', Array, Object(Drupal\Core\Form\FormState))
#5 /Users/web/core/lib/Drupal/Core/Form/FormBuilder.php(1069): Drupal\Core\Form\FormBuilder->doBuildForm('config_log_conf...', Array, Object(Drupal\Core\Form\FormState))
#6 /Users/web/core/lib/Drupal/Core/Form/FormBuilder.php(1069): Drupal\Core\Form\FormBuilder->doBuildForm('config_log_conf...', Array, Object(Drupal\Core\Form\FormState))
#7 /Users/web/core/lib/Drupal/Core/Form/FormBuilder.php(579): Drupal\Core\Form\FormBuilder->doBuildForm('config_log_conf...', Array, Object(Drupal\Core\Form\FormState))
#8 /Users/web/core/lib/Drupal/Core/Form/FormBuilder.php(326): Drupal\Core\Form\FormBuilder->processForm('config_log_conf...', Array, Object(Drupal\Core\Form\FormState))
#9 /Users/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\config_log\Form\ConfigLogConfigForm), Object(Drupal\Core\Form\FormState))
#10 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
Steps to reproduce
- Install v4 (+install patch)
- Navigate to config form
- Warning appears