diff --git a/src/Controller/HandlePdfController.php b/src/Controller/HandlePdfController.php
index efe6ed3f09a842358b99c171bc4ec65fc0bd5f21..9f0c5463979f822321174a3f418b788fb03b836a 100644
--- a/src/Controller/HandlePdfController.php
+++ b/src/Controller/HandlePdfController.php
@@ -171,7 +171,7 @@ class HandlePdfController extends ControllerBase {
    *   The FillPDF context to alter.
    */
   public function alterContext(array &$context): void {
-    $this->moduleHandler()->alter('fillpdf_populate_pdf_context', $context);
+    $this->moduleHandler->alter('fillpdf_populate_pdf_context', $context);
   }
 
   /**