From 4df975ea6d882958bc2f96be75b68362df9fa4d1 Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Mon, 23 May 2022 23:32:31 +0200
Subject: [PATCH] Fix namespace

---
 modules/saml/lib/Controller/Metadata.php               | 2 +-
 modules/saml/lib/Controller/SingleLogout.php           | 2 +-
 modules/saml/lib/Controller/WebBrowserSingleSignOn.php | 2 +-
 tests/modules/saml/lib/Controller/MetadataTest.php     | 3 +++
 4 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/modules/saml/lib/Controller/Metadata.php b/modules/saml/lib/Controller/Metadata.php
index 8635d94c9..84e3efd54 100644
--- a/modules/saml/lib/Controller/Metadata.php
+++ b/modules/saml/lib/Controller/Metadata.php
@@ -2,7 +2,7 @@
 
 declare(strict_types=1);
 
-namespace SimpleSAML\Controller;
+namespace SimpleSAML\Module\saml\Controller;
 
 use Exception;
 use SimpleSAML\Configuration;
diff --git a/modules/saml/lib/Controller/SingleLogout.php b/modules/saml/lib/Controller/SingleLogout.php
index b5eafd0ce..1b2fe5f6a 100644
--- a/modules/saml/lib/Controller/SingleLogout.php
+++ b/modules/saml/lib/Controller/SingleLogout.php
@@ -2,7 +2,7 @@
 
 declare(strict_types=1);
 
-namespace SimpleSAML\Controller;
+namespace SimpleSAML\Module\saml\Controller;
 
 use SAML2\Exception\Protocol\UnsupportedBindingException;
 use SimpleSAML\Assert\Assert;
diff --git a/modules/saml/lib/Controller/WebBrowserSingleSignOn.php b/modules/saml/lib/Controller/WebBrowserSingleSignOn.php
index 76fd2b984..032d41f21 100644
--- a/modules/saml/lib/Controller/WebBrowserSingleSignOn.php
+++ b/modules/saml/lib/Controller/WebBrowserSingleSignOn.php
@@ -2,7 +2,7 @@
 
 declare(strict_types=1);
 
-namespace SimpleSAML\Controller;
+namespace SimpleSAML\Module\saml\Controller;
 
 use SAML2\Exception\Protocol\UnsupportedBindingException;
 use SAML2\ArtifactResolve;
diff --git a/tests/modules/saml/lib/Controller/MetadataTest.php b/tests/modules/saml/lib/Controller/MetadataTest.php
index bbf45173c..78c8da7b6 100644
--- a/tests/modules/saml/lib/Controller/MetadataTest.php
+++ b/tests/modules/saml/lib/Controller/MetadataTest.php
@@ -27,6 +27,9 @@ class MetadataTest extends TestCase
     /** @var \SimpleSAML\Session */
     protected Session $session;
 
+    /** @var \SimpleSAML\Utils\Auth */
+    protected Utils\Auth $authUtils;
+
 
     /**
      * Set up for each test.
-- 
GitLab