Skip to content
Snippets Groups Projects
Commit e75d1ce3 authored by Olav Morken's avatar Olav Morken
Browse files

SAML2_ArtifactResponse: Allow empty ArtifactResponse.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2533 44740490-163a-0410-bde0-09ae8108e29a
parent 32584cbe
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,10 @@ class SAML2_ArtifactResponse extends SAML2_StatusResponse { ...@@ -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; private $any;
...@@ -38,8 +41,7 @@ class SAML2_ArtifactResponse extends SAML2_StatusResponse { ...@@ -38,8 +41,7 @@ class SAML2_ArtifactResponse extends SAML2_StatusResponse {
} }
public function setAny(DOMElement $any) { public function setAny(DOMElement $any = NULL) {
assert('!is_null($any)');
$this->any = $any; $this->any = $any;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment