diff --git a/src/SAML2/Assertion/Transformer/NameIdDecryptionTransformer.php b/src/SAML2/Assertion/Transformer/NameIdDecryptionTransformer.php
index <HASH>..<HASH> 100644
--- a/src/SAML2/Assertion/Transformer/NameIdDecryptionTransformer.php
+++ b/src/SAML2/Assertion/Transformer/NameIdDecryptionTransformer.php
@@ -40,6 +40,7 @@ class NameIdDecryptionTransformer implements
         LoggerInterface $logger,
         PrivateKeyLoader $privateKeyLoader
     ) {
+        $this->logger = $logger;
         $this->privateKeyLoader = $privateKeyLoader;
     }
bugfix: Set logger in SAML2\Assertion\Transformer\NameIDDecryptionTransformer.

This resolves #<I>.