Skip to content

Commit eb01ef2

Browse files
committed
fix Credentials deprecation
1 parent 9dbf5ac commit eb01ef2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ jobs:
9898
- "7.4"
9999
- "8.0"
100100
- "8.1"
101+
- "8.2"
102+
- "8.3"
103+
- "8.4"
101104
dependencies:
102105
- lowest
103106
- highest

lib/commercetools-base/src/Client/ClientCredentials.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ class ClientCredentials
3838
* Format: `<the scope name>:<the project key>`.
3939
* Example: `manage_products:project1`.
4040
*/
41-
public function __construct(string $clientId, string $clientSecret, string $scope = null)
41+
public function __construct(string $clientId, string $clientSecret, ?string $scope)
4242
{
4343
$this->clientId = $clientId;
4444
$this->clientSecret = $clientSecret;
4545
$this->scope = $scope;
46-
$this->cacheKey = sha1($clientId . (string)$scope);
46+
$this->cacheKey = sha1($clientId . $scope);
4747
}
4848

4949
public function getClientId(): string

0 commit comments

Comments
 (0)