diff options
author | Olav Morken <olav.morken@uninett.no> | 2010-09-09 07:20:54 +0000 |
---|---|---|
committer | Olav Morken <olav.morken@uninett.no> | 2010-09-09 07:20:54 +0000 |
commit | e75d1ce32048bc46fde4c33e8ddc85774006317c (patch) | |
tree | 21a4cd37733c0410aeedcfbc7ec4a47468d9a3f1 /lib | |
parent | 32584cbeffa871c55251d68fcaf83bcde0689ea3 (diff) | |
download | simplesamlphp-e75d1ce32048bc46fde4c33e8ddc85774006317c.zip simplesamlphp-e75d1ce32048bc46fde4c33e8ddc85774006317c.tar.gz simplesamlphp-e75d1ce32048bc46fde4c33e8ddc85774006317c.tar.bz2 |
SAML2_ArtifactResponse: Allow empty ArtifactResponse.
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2533 44740490-163a-0410-bde0-09ae8108e29a
Diffstat (limited to 'lib')
-rw-r--r-- | lib/SAML2/ArtifactResponse.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/SAML2/ArtifactResponse.php b/lib/SAML2/ArtifactResponse.php index 7d4fe5e..e818682 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; } |