diff --git a/src/FormatterHelper.php b/src/FormatterHelper.php
index c4ef456..c8ca487 100644
--- a/src/FormatterHelper.php
+++ b/src/FormatterHelper.php
@@ -60,7 +60,7 @@ class FormatterHelper implements TrustedCallbackInterface {
    * @return array
    *   The updated form.
    */
-  public static function formProcess(array &$element, FormStateInterface $form_state = NULL, array &$form = []) {
+  public static function formProcess(array &$element, ?FormStateInterface $form_state = NULL, array &$form = []) {
     if (empty($element['#field_group_form_process'])) {
       $element['#field_group_form_process'] = TRUE;
       if (empty($element['#fieldgroups'])) {
