Skip to content

Commit e5d30fd

Browse files
committed
Fix signature; EncryptedKey is optional here
1 parent d233bee commit e5d30fd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/XML/EncryptedElementInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ public function hasDecryptionKey(): bool;
3636
/**
3737
* Get the encrypted key used to encrypt the current element.
3838
*
39-
* @return \SimpleSAML\XMLSecurity\XML\xenc\EncryptedKey
39+
* @return \SimpleSAML\XMLSecurity\XML\xenc\EncryptedKey|null
4040
*/
41-
public function getEncryptedKey(): EncryptedKey;
41+
public function getEncryptedKey(): ?EncryptedKey;
4242

4343
/**
4444
* Get the EncryptedData object.

src/XML/EncryptedElementTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ public function hasDecryptionKey(): bool
6767
/**
6868
* Get the encrypted key used to encrypt the current element.
6969
*
70-
* @return \SimpleSAML\XMLSecurity\XML\xenc\EncryptedKey
70+
* @return \SimpleSAML\XMLSecurity\XML\xenc\EncryptedKey|null
7171
*/
72-
public function getEncryptedKey(): EncryptedKey
72+
public function getEncryptedKey(): ?EncryptedKey
7373
{
7474
return $this->encryptedKey;
7575
}

0 commit comments

Comments
 (0)