Skip to content

Commit

Permalink
Bugfix: resource can be an empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Feb 9, 2025
1 parent db1c237 commit 4bbfb95
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@

use DOMElement;
use SimpleSAML\Assert\Assert;
use SimpleSAML\SAML11\Type\{AnyURIValue, StringValue};
use SimpleSAML\SAML11\Type\StringValue;
use SimpleSAML\XML\Exception\{
InvalidDOMElementException,
MissingElementException,
SchemaViolationException,
TooManyElementsException,
};
use SimpleSAML\XML\Type\AnyURIValue;

use function strval;

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

0 comments on commit 4bbfb95

Please sign in to comment.