Skip to content

Commit

Permalink
Refactor schema-constants
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Feb 2, 2025
1 parent 7da9082 commit d00d59f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SAML11/XML/saml/AttributeValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function getXsiType(): string
if ($value === null) {
return 'xs:nil';
} elseif ($value instanceof ValueTypeInterface) {
return $value::SCHEMA_TYPE;
return $value::SCHEMA_NAMESPACE_PREFIX . ':' . $value::SCHEMA_TYPE;
} else {
return sprintf(
'%s:%s',
Expand Down
2 changes: 1 addition & 1 deletion src/SAML11/XML/saml/SubjectConfirmationData.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function getXsiType(): string
if ($value === null) {
return 'xs:nil';
} elseif ($value instanceof ValueTypeInterface) {
return $value::SCHEMA_TYPE;
return $value::SCHEMA_NAMESPACE_PREFIX . ':' . $value::SCHEMA_TYPE;
} else {
return sprintf(
'%s:%s',
Expand Down

0 comments on commit d00d59f

Please sign in to comment.