From 07da1427bf660c55ee35383fc39fca521d3322bb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaime=20Pe=CC=81rez=20Crespo?= <jaime.perez@uninett.no>
Date: Wed, 25 Oct 2017 16:14:45 +0200
Subject: [PATCH] Fix a couple of issues reported by scrutinizer.

---
 lib/SimpleSAML/SessionHandlerStore.php | 2 +-
 lib/SimpleSAML/XML/Signer.php          | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/SimpleSAML/SessionHandlerStore.php b/lib/SimpleSAML/SessionHandlerStore.php
index 487d6c6cf..328654249 100644
--- a/lib/SimpleSAML/SessionHandlerStore.php
+++ b/lib/SimpleSAML/SessionHandlerStore.php
@@ -54,7 +54,7 @@ class SessionHandlerStore extends SessionHandlerCookie
 
         $session = $this->store->get('session', $sessionId);
         if ($session !== null) {
-            assert($session instanceof SimpleSAML_Session);
+            assert($session instanceof \SimpleSAML_Session);
             return $session;
         }
 
diff --git a/lib/SimpleSAML/XML/Signer.php b/lib/SimpleSAML/XML/Signer.php
index e56e34ad4..5ab89acd6 100644
--- a/lib/SimpleSAML/XML/Signer.php
+++ b/lib/SimpleSAML/XML/Signer.php
@@ -302,6 +302,7 @@ class Signer
             $options
         );
 
+        /** @var \RobRichards\XMLSecLibs\XMLSecurityKey $this->privateKey */
         $objXMLSecDSig->sign($this->privateKey);
 
 
-- 
GitLab