From f508068750ed339a9266b38f3479be30aa0dd4f8 Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Tue, 7 Sep 2021 23:24:00 +0200
Subject: [PATCH] Remove unnecessary annotations

---
 lib/SimpleSAML/Error/UnserializableException.php | 1 -
 lib/SimpleSAML/Utils/Crypto.php                  | 1 -
 tests/modules/saml/lib/Auth/Source/SPTest.php    | 1 -
 3 files changed, 3 deletions(-)

diff --git a/lib/SimpleSAML/Error/UnserializableException.php b/lib/SimpleSAML/Error/UnserializableException.php
index ea0bef598..4f3f274dd 100644
--- a/lib/SimpleSAML/Error/UnserializableException.php
+++ b/lib/SimpleSAML/Error/UnserializableException.php
@@ -41,7 +41,6 @@ class UnserializableException extends Exception
         $this->class = get_class($original);
         $msg = $original->getMessage();
 
-        /** @var string|int $code */
         $code = $original->getCode();
 
         if (!is_int($code)) {
diff --git a/lib/SimpleSAML/Utils/Crypto.php b/lib/SimpleSAML/Utils/Crypto.php
index 10f6dc97f..bf5880a19 100644
--- a/lib/SimpleSAML/Utils/Crypto.php
+++ b/lib/SimpleSAML/Utils/Crypto.php
@@ -35,7 +35,6 @@ class Crypto
             throw new Error\Exception("The openssl PHP module is not loaded.");
         }
 
-        /** @var int $len */
         $len = mb_strlen($ciphertext, '8bit');
         if ($len < 48) {
             throw new InvalidArgumentException(
diff --git a/tests/modules/saml/lib/Auth/Source/SPTest.php b/tests/modules/saml/lib/Auth/Source/SPTest.php
index 0e9c28a5f..74393b9bf 100644
--- a/tests/modules/saml/lib/Auth/Source/SPTest.php
+++ b/tests/modules/saml/lib/Auth/Source/SPTest.php
@@ -1346,7 +1346,6 @@ class SPTest extends ClearStateTestCase
 
         $xml = $lr->toSignedXML();
 
-        /** @var \DOMNode[] $q */
         $q = Utils::xpQuery($xml, '/samlp:LogoutRequest/saml:NameID');
         $this->assertCount(1, $q);
         $this->assertEquals('someone@example.com', $q[0]->nodeValue);
-- 
GitLab