diff --git a/lib/SimpleSAML/XHTML/TemplateControllerInterface.php b/lib/SimpleSAML/XHTML/TemplateControllerInterface.php
index 8d6f4e733ee95f3f082f8cda06fe4f631f74622e..082320b234efebfb07d617d96e475c429d1d37e2 100644
--- a/lib/SimpleSAML/XHTML/TemplateControllerInterface.php
+++ b/lib/SimpleSAML/XHTML/TemplateControllerInterface.php
@@ -13,11 +13,11 @@ interface TemplateControllerInterface
     /**
      * Implement to modify the twig environment after its initialization (e.g. add filters or extensions).
      *
-     * @param \Twig_Environment $twig The current twig environment.
+     * @param \Twig\Environment $twig The current twig environment.
      *
      * @return void
      */
-    public function setUpTwig(\Twig_Environment &$twig);
+    public function setUpTwig(\Twig\Environment &$twig);
 
 
     /**