Skip to content

Commit 016ff1f

Browse files
committed
fix: return type error
1 parent 390322f commit 016ff1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Element/UKAddressLookup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public static function getCompositeElements(array $element) {
8585
/**
8686
* {@inheritdoc}
8787
*/
88-
public static function validateWebformComposite(&$element, FormStateInterface $form_state, &$complete_form) {
88+
public static function validateWebformComposite(&$element, FormStateInterface $form_state, &$complete_form): void {
8989
// IMPORTANT: Must get values from the $form_states since sub-elements
9090
// may call $form_state->setValueForElement() via their validation hook.
9191
// @see \Drupal\webform\Element\WebformEmailConfirm::validateWebformEmailConfirm
@@ -145,7 +145,7 @@ public static function validateWebformComposite(&$element, FormStateInterface $f
145145
// (it's cleared if search string is empty).
146146
// @See DRUP-1185.
147147
$form_state->setValueForElement($element['address_lookup']['address_search']['address_searchstring'], NULL);
148-
return parent::validateWebformComposite($element, $form_state, $complete_form);
148+
parent::validateWebformComposite($element, $form_state, $complete_form);
149149
}
150150

151151
// Only validate composite elements that are visible.

0 commit comments

Comments
 (0)