diff --git a/src/TokenResolver.php b/src/TokenResolver.php
index 59143046f7c3eb094974a59e79cad771bd2087d7..283accdd866a1050e138606c8f3387a2f246bc77 100644
--- a/src/TokenResolver.php
+++ b/src/TokenResolver.php
@@ -112,7 +112,7 @@ class TokenResolver implements TokenResolverInterface {
       elseif ($maybe_text) {
         // None of the provided entities matches this token type. It may however
         // still be a global token.
-        $replacements += $this->tokenService->generate($token_type, $type_tokens, [], $options, $bubbleable_metadata);
+        $replacements += $this->tokenService->generate($token_type, $type_tokens, $data, $options, $bubbleable_metadata);
       }
       // Clear any unresolved tokens of this type from the string.
       $replacements += array_fill_keys($tokens[$token_type], '');