Skip to content

Commit

Permalink
Start using PHP 8.1 features
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Dec 14, 2023
1 parent fdafd58 commit 8460b06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XML/EncryptableElementTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ trait EncryptableElementTrait
public function encrypt(EncryptionAlgorithmInterface $encryptor): EncryptedData
{
$keyInfo = null;
if (in_array($encryptor->getAlgorithmId(), KeyTransport::cases()) {
if (in_array($encryptor->getAlgorithmId(), KeyTransport::cases())) {
// the encryptor uses a key transport algorithm, use that to generate a session key
$sessionKey = SymmetricKey::generate($this->sessionKeyLen);

Expand Down

0 comments on commit 8460b06

Please sign in to comment.