Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'v7' of https://github.com/Spomky-Labs/jose into v7
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky committed Oct 2, 2017
2 parents 5ba3f29 + 4dd04a2 commit da794f7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Component/Core/JWKSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ private function canKeyBeUsedFor(string $type, JWK $key)

/**
* @param null|AlgorithmInterface $algorithm
* @param JWK $key
* @param JWK $key
*
* @return bool|int
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function __construct(int $salt_size = 64, int $nb_count = 4096)
$this->salt_size = $salt_size;
$this->nb_count = $nb_count;
}

/**
* {@inheritdoc}
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Component/KeyManagement/JWKFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ private static function getOpensslName(string $curve): string
public static function createFromString(string $value)
{
$json = json_decode($value, true);
if(!is_array($json)) {
if (!is_array($json)) {
throw new \InvalidArgumentException('Invalid key or key set.');
}

Expand Down
2 changes: 1 addition & 1 deletion src/Component/Signature/Algorithm/ECDSA.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function __construct()
throw new \RuntimeException('Elliptic Curve key type not supported by your environment.');
}
}

/**
* {@inheritdoc}
*/
Expand All @@ -39,7 +40,6 @@ public function allowedKeyTypes(): array
return ['EC'];
}


/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit da794f7

Please sign in to comment.