Skip to content

Commit 6b4c480

Browse files
committed
revert usage of empty() as not present in supported versions of lib
1 parent c3e4990 commit 6b4c480

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [Unreleased]
88
### Fixed
9-
- Use InMemory::empty() instead of InMemory::plainText('') to avoid new empty string exception thrown by lcobucci/jwt (PR #1282)
9+
- Use string 'empty' instead of InMemory::plainText('') to avoid new empty string exception thrown by lcobucci/jwt (PR #1282)
1010

1111
## [8.3.4] - released 2022-04-07
1212
### Fixed

src/AuthorizationValidators/BearerTokenValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private function initJwtConfiguration()
7070
{
7171
$this->jwtConfiguration = Configuration::forSymmetricSigner(
7272
new Sha256(),
73-
InMemory::empty()
73+
InMemory::plainText('empty', 'empty')
7474
);
7575

7676
$this->jwtConfiguration->setValidationConstraints(

src/Entities/Traits/AccessTokenTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function initJwtConfiguration()
4646
$this->jwtConfiguration = Configuration::forAsymmetricSigner(
4747
new Sha256(),
4848
InMemory::plainText($this->privateKey->getKeyContents(), $this->privateKey->getPassPhrase() ?? ''),
49-
InMemory::empty()
49+
InMemory::plainText('empty', 'empty')
5050
);
5151
}
5252

0 commit comments

Comments
 (0)