Skip to content

Commit

Permalink
Cast client id and client secret to string for compatibility with PHP…
Browse files Browse the repository at this point in the history
…8.2 (#20)

* Cast client id and client secret to string
* Linter changes

---------

Co-authored-by: Piotr Matras <piotr.matras@creativestyle.pl>
Co-authored-by: Šaltanovas Aivaras <zumbass@gmail.com>
Co-authored-by: Šaltanovas Aivaras <aivaras.saltanovas@kevin.eu>
  • Loading branch information
4 people authored Mar 4, 2024
1 parent 75badc4 commit 46b438a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Gateway/Config/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,20 @@ public function getActive()
return $this->getValue('active');
}

/**
* @return string
*/
public function getClientId()
{
return $this->getValue('client_id');
return (string) $this->getValue('client_id');
}

/**
* @return string
*/
public function getClientSecret()
{
return $this->getValue('client_secret');
return (string) $this->getValue('client_secret');
}

public function getSignature()
Expand Down

0 comments on commit 46b438a

Please sign in to comment.