Skip to content

Commit

Permalink
Fix deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Apr 7, 2024
1 parent a46ec9a commit 83b5198
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Auth/Source/X509userCert.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ExpiryWarning.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 83b5198

Please sign in to comment.