From 83b5198ac126953a47e9745ca631f6b3bd77cf2f Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Sun, 7 Apr 2024 17:17:11 +0200 Subject: [PATCH] Fix deprecations --- src/Auth/Source/X509userCert.php | 2 +- src/Controller/ExpiryWarning.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Auth/Source/X509userCert.php b/src/Auth/Source/X509userCert.php index aaa56b0..33af6a7 100644 --- a/src/Auth/Source/X509userCert.php +++ b/src/Auth/Source/X509userCert.php @@ -117,7 +117,7 @@ public function authFailed(&$state): void { $config = Configuration::getInstance(); $errorcode = $state['authX509.error']; - $errorcodes = Error\ErrorCodes::getAllErrorCodeMessages(); + $errorcodes = (new Error\ErrorCodes())->getAllMessages(); $t = new Template($config, 'authX509:X509error.twig'); $httpUtils = new Utils\HTTP(); diff --git a/src/Controller/ExpiryWarning.php b/src/Controller/ExpiryWarning.php index a5bff3c..cb7fc56 100644 --- a/src/Controller/ExpiryWarning.php +++ b/src/Controller/ExpiryWarning.php @@ -89,7 +89,7 @@ public function main(Request $request): Response $t->data['data'] = ['StateId' => $id]; $t->data['daysleft'] = $state['daysleft']; $t->data['renewurl'] = $state['renewurl']; - $t->data['errorcodes'] = Error\ErrorCodes::getAllErrorCodeMessages(); + $t->data['errorcodes'] = (new Error\ErrorCodes())->getAllMessages(); return $t; } }