Skip to content

Commit 46b438a

Browse files
Cast client id and client secret to string for compatibility with PHP8.2 (#20)
* Cast client id and client secret to string * Linter changes --------- Co-authored-by: Piotr Matras <[email protected]> Co-authored-by: Šaltanovas Aivaras <[email protected]> Co-authored-by: Šaltanovas Aivaras <[email protected]>
1 parent 75badc4 commit 46b438a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Gateway/Config/Config.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,20 @@ public function getActive()
8282
return $this->getValue('active');
8383
}
8484

85+
/**
86+
* @return string
87+
*/
8588
public function getClientId()
8689
{
87-
return $this->getValue('client_id');
90+
return (string) $this->getValue('client_id');
8891
}
8992

93+
/**
94+
* @return string
95+
*/
9096
public function getClientSecret()
9197
{
92-
return $this->getValue('client_secret');
98+
return (string) $this->getValue('client_secret');
9399
}
94100

95101
public function getSignature()

0 commit comments

Comments
 (0)