From ffe86f4a3745cae1d5cc805157f479739e2850fb Mon Sep 17 00:00:00 2001
From: Guillaume Rousse <guillaume.rousse@renater.fr>
Date: Mon, 25 Sep 2023 17:18:44 +0200
Subject: [PATCH] use newer PHP array syntax

---
 templates/other/accounts.php.tt2 | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/templates/other/accounts.php.tt2 b/templates/other/accounts.php.tt2
index 2baf9e1..e478c6b 100644
--- a/templates/other/accounts.php.tt2
+++ b/templates/other/accounts.php.tt2
@@ -1,18 +1,18 @@
 <?php
 // PhP configuration file loaded in simpleSamlPhp authsources.php file
-$validTestAccounts = array (
+$validTestAccounts = [
     'authcrypt:Hash',
 
 [% FOREACH account IN accounts %]
     [% template = account.profile() _ '.tt2' %]
     [% PROCESS $template scope=account.scope() id=account.id() | trim %]
-    '[% account.internal_uid() %]:{SHA256}[% account.password_hash() %]=' => array(
-        'internal_uid' => array([% account.internal_uid().quote %]),
-        'associatedSP' => array([% account.entityid().quote %]),
+    '[% account.internal_uid() %]:[% account.password_hash() %]' => [
+        'internal_uid' => [[% account.internal_uid().quote %]],
+        'associatedSP' => [[% account.entityid().quote %]],
     [% FOREACH pair IN attributes.pairs %]
-        '[% pair.key %]' => array([% pair.value.quote("'").join(', ') %]),
+        '[% pair.key %]' => [[% pair.value.quote("'").join(', ') %]],
     [% END %]
-    ),
+    ],
 
 [% END %]
-);
+];
-- 
GitLab