Skip to content

Commit

Permalink
fix parameter position to call impersonate() method
Browse files Browse the repository at this point in the history
This commit remove error message from PHP 8.1:

Optional parameter $credentials declared before required parameter $username is implicitly treated as a required parameter
  • Loading branch information
kresnasatya authored May 27, 2024
1 parent 37b6089 commit f0f2cfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Services/SSOService.php
Original file line number Diff line number Diff line change
Expand Up @@ -540,10 +540,10 @@ protected function refreshTokenIfNeeded($credentials)
* 1. Enable feature Token Exchange, Fine-Grained Admin Permissions, and Account Management REST API in Keycloak.
* 2. Register user(s) as impersonator in impersonate scope user permissions.
*
* @param credentials (access token of impersonator), username
* @param username, credentials (access token of impersonator)
* @return array|exception
*/
public function impersonate($credentials = array(), $username)
public function impersonate($username, $credentials = array())
{
$token = [];

Expand Down

0 comments on commit f0f2cfc

Please sign in to comment.