Skip to content

Commit 4bbfb95

Browse files
committed
Bugfix: resource can be an empty string
1 parent db1c237 commit 4bbfb95

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/SAML11/XML/saml/AbstractAuthorizationDecisionStatementType.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66

77
use DOMElement;
88
use SimpleSAML\Assert\Assert;
9-
use SimpleSAML\SAML11\Type\{AnyURIValue, StringValue};
9+
use SimpleSAML\SAML11\Type\StringValue;
1010
use SimpleSAML\XML\Exception\{
1111
InvalidDOMElementException,
1212
MissingElementException,
1313
SchemaViolationException,
1414
TooManyElementsException,
1515
};
16+
use SimpleSAML\XML\Type\AnyURIValue;
1617

1718
use function strval;
1819

@@ -34,6 +35,7 @@ abstract class AbstractAuthorizationDecisionStatementType extends AbstractSubjec
3435
*/
3536
final public function __construct(
3637
Subject $subject,
38+
// Uses the base AnyURIValue because the specification allows for this attribute to be empty
3739
protected AnyURIValue $resource,
3840
protected DecisionTypeEnum $decision,
3941
protected array $action = [],

0 commit comments

Comments
 (0)