Skip to content

Commit

Permalink
bug #813 Fix undefined variable (chalasr)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.x-dev branch.

Discussion
----------

Fix undefined variable

fixes #812

Commits
-------

c9cd29a Fix undefined variable
  • Loading branch information
chalasr committed Dec 15, 2020
2 parents a0dc033 + c9cd29a commit 44b3053
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Services/JWSProvider/LcobucciJWSProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private function getSignedToken(Builder $jws)
if (class_exists(InMemory::class)) {
$key = InMemory::plainText($this->keyLoader->loadKey(RawKeyLoader::TYPE_PRIVATE), $this->signer instanceof Hmac ? '' : $this->keyLoader->getPassphrase());
} else {
new Key($this->keyLoader->loadKey(RawKeyLoader::TYPE_PRIVATE), $this->signer instanceof Hmac ? '' : $this->keyLoader->getPassphrase());
$key = new Key($this->keyLoader->loadKey(RawKeyLoader::TYPE_PRIVATE), $this->signer instanceof Hmac ? '' : $this->keyLoader->getPassphrase());
}

if ($this->legacyJWTApi) {
Expand Down
1 change: 1 addition & 0 deletions Tests/DependencyInjection/AutowiringTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ private static function createContainerBuilder(array $configs = [])
'kernel.charset' => 'utf8',
'kernel.runtime_environment' => 'test',
'env(base64:default::SYMFONY_DECRYPTION_SECRET)' => 'dummy',
'kernel.build_dir' => __DIR__,
]));

$container->registerExtension(new SecurityExtension());
Expand Down

0 comments on commit 44b3053

Please sign in to comment.