From 1681613b4c406ff7d23740d33d15ff1bd28c0f49 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaime=20P=C3=A9rez=20Crespo?= <jaime.perez@uninett.no>
Date: Fri, 5 May 2017 10:53:14 +0200
Subject: [PATCH] Fix PHP 5.3 syntax issue.

Accessing a key in an array is not allowed when the array is not a variable but a value returned by a function.
---
 tests/lib/SimpleSAML/Utils/CryptoTest.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/lib/SimpleSAML/Utils/CryptoTest.php b/tests/lib/SimpleSAML/Utils/CryptoTest.php
index 84eed30ee..cb31cdbae 100644
--- a/tests/lib/SimpleSAML/Utils/CryptoTest.php
+++ b/tests/lib/SimpleSAML/Utils/CryptoTest.php
@@ -532,7 +532,8 @@ PHP;
             'test'
         );
 
-        $res = Crypto::loadPublicKey($config)['certData'];
+        $pubkey = Crypto::loadPublicKey($config);
+        $res = $pubkey['certData'];
         $expected = $x509certificate;
 
         $this->assertEquals($expected, $res);
-- 
GitLab