From e75d1ce32048bc46fde4c33e8ddc85774006317c Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Thu, 9 Sep 2010 07:20:54 +0000 Subject: [PATCH] SAML2_ArtifactResponse: Allow empty ArtifactResponse. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2533 44740490-163a-0410-bde0-09ae8108e29a --- lib/SAML2/ArtifactResponse.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/SAML2/ArtifactResponse.php b/lib/SAML2/ArtifactResponse.php index 7d4fe5e90..e8186826d 100644 --- a/lib/SAML2/ArtifactResponse.php +++ b/lib/SAML2/ArtifactResponse.php @@ -11,7 +11,10 @@ class SAML2_ArtifactResponse extends SAML2_StatusResponse { /** - * @var any contains saml2message XML + * The DOMElement with the message the artifact refers + * to, or NULL if we don't refer to any artifact. + * + * @var DOMElement|NULL */ private $any; @@ -38,8 +41,7 @@ class SAML2_ArtifactResponse extends SAML2_StatusResponse { } - public function setAny(DOMElement $any) { - assert('!is_null($any)'); + public function setAny(DOMElement $any = NULL) { $this->any = $any; } -- GitLab