From 5e51a3f0ada7c4306fda2ad00af39d89d37cddd4 Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Sat, 19 Nov 2022 20:18:12 -0500 Subject: [PATCH] Fix signature of hooks to work with modern friendica --- saml/saml.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/saml/saml.php b/saml/saml.php index 52d36d99f..2f9e437ed 100755 --- a/saml/saml.php +++ b/saml/saml.php @@ -108,7 +108,7 @@ function saml_is_configured() DI::config()->get('saml', 'idp_cert'); } -function saml_sso_initiate(App $a, array &$b) +function saml_sso_initiate(App $a, string &$body) { if (!saml_is_configured()) { Logger::warning('SAML SSO tried to trigger, but the SAML addon is not configured yet!'); @@ -173,7 +173,7 @@ function saml_sso_reply(App $a) } } -function saml_slo_initiate(App $a, array &$b) +function saml_slo_initiate(App $a, string &$body) { if (!saml_is_configured()) { Logger::warning('SAML SLO tried to trigger, but the SAML addon is not configured yet!');