Skip to content

Commit 7b46815

Browse files
committed
IV can be null
1 parent 74e90e0 commit 7b46815

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Component/Encryption/JWE.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class JWE implements JWT
2828
private $ciphertext = null;
2929

3030
/**
31-
* @var string
31+
* @var string|null
3232
*/
3333
private $iv;
3434

@@ -65,7 +65,7 @@ class JWE implements JWT
6565
/**
6666
* JWE constructor.
6767
*/
68-
private function __construct(string $ciphertext, string $iv, string $tag, ?string $aad = null, array $sharedHeader = [], array $sharedProtectedHeader = [], ?string $encodedSharedProtectedHeader = null, array $recipients = [])
68+
private function __construct(string $ciphertext, ?string $iv, string $tag, ?string $aad = null, array $sharedHeader = [], array $sharedProtectedHeader = [], ?string $encodedSharedProtectedHeader = null, array $recipients = [])
6969
{
7070
$this->ciphertext = $ciphertext;
7171
$this->iv = $iv;

0 commit comments

Comments
 (0)