The trait SAML2\XML\EncryptedElementTrait requires some properties which are not provided by SAML2\XML\saml\EncryptedAssertion: $localName, $namespaceURI
Loading history...
21
22
/**
23
* @var bool
24
*/
25
protected $wasSignedAtConstruction = false;
26
27
28
/**
29
* @inheritDoc
30
*
31
* @return \SAML2\XML\saml\Assertion
32
* @throws \Exception
33
*
34
* @psalm-suppress MismatchingDocblockReturnType
35
* @psalm-suppress ImplementedReturnTypeMismatch
36
*/
37
public function decrypt(XMLSecurityKey $key, array $blacklist = []): AbstractXMLElement
The expression return new SAML2\XML\saml\Assertion($assertionXML) returns the type SAML2\XML\saml\Assertion which is incompatible with the type-hinted return SAML2\XML\AbstractXMLElement.