diff --git a/tests/modules/saml/lib/Auth/Source/Auth_Source_SP_Test.php b/tests/modules/saml/lib/Auth/Source/Auth_Source_SP_Test.php
index 6ead560d7711b9c9aceb95bb81df21c4a5186e47..b9b275501774ef2e2ff6f2657f7ce25941d623c1 100644
--- a/tests/modules/saml/lib/Auth/Source/Auth_Source_SP_Test.php
+++ b/tests/modules/saml/lib/Auth/Source/Auth_Source_SP_Test.php
@@ -173,7 +173,7 @@ class SPTest extends ClearStateTestCase
         $ar = $this->createAuthnRequest();
 
         // Assert values in the generated AuthnRequest
-        /** @var $xml \DOMElement */
+        /** @var \DOMElement $xml */
         $xml = $ar->toSignedXML();
         $q = \SAML2\Utils::xpQuery($xml, '/samlp:AuthnRequest/@Destination');
         $this->assertEquals(
@@ -205,7 +205,7 @@ class SPTest extends ClearStateTestCase
         $this->assertEquals($state['saml:NameID']['Value'], $nameID->getValue());
         $this->assertEquals($state['saml:NameID']['Format'], $nameID->getFormat());
 
-        /** @var $xml \DOMElement */
+        /** @var \DOMElement $xml */
         $xml = $ar->toSignedXML();
         $q = \SAML2\Utils::xpQuery($xml, '/samlp:AuthnRequest/saml:Subject/saml:NameID/@Format');
         $this->assertEquals(
@@ -239,7 +239,7 @@ class SPTest extends ClearStateTestCase
             $a['AuthnContextClassRef'][0]
         );
 
-        /** @var $xml \DOMElement */
+        /** @var \DOMElement $xml */
         $xml = $ar->toSignedXML();
         $q = \SAML2\Utils::xpQuery($xml, '/samlp:AuthnRequest/samlp:RequestedAuthnContext/saml:AuthnContextClassRef');
         $this->assertEquals(
@@ -267,7 +267,7 @@ class SPTest extends ClearStateTestCase
             $ar->getForceAuthn()
         );
 
-        /** @var $xml \DOMElement */
+        /** @var \DOMElement $xml */
         $xml = $ar->toSignedXML();
         $q = \SAML2\Utils::xpQuery($xml, '/samlp:AuthnRequest/@ForceAuthn');
         $this->assertEquals(
diff --git a/tests/modules/saml/lib/IdP/SAML2Test.php b/tests/modules/saml/lib/IdP/SAML2Test.php
index 607234a172c9b66fb2a585fba0d952efd200e253..a79ae36b6a75f6e5bbdfbe8af6decc72d86b09f3 100644
--- a/tests/modules/saml/lib/IdP/SAML2Test.php
+++ b/tests/modules/saml/lib/IdP/SAML2Test.php
@@ -150,7 +150,7 @@ class SAML2Test extends ClearStateTestCase
      */
     private function idpInitiatedHelper(array $queryParams)
     {
-        /** @var $idpStub \PHPUnit_Framework_MockObject_MockObject|IdP */
+        /** @var \PHPUnit_Framework_MockObject_MockObject|\SimpleSAML\IdP $idpStub */
         $idpStub = $this->getMockBuilder(IdP::class)
             ->disableOriginalConstructor()
             ->getMock();