File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77use Dom ;
88use RuntimeException ;
99use SimpleSAML \XML \Assert \Assert ;
10- use SimpleSAML \XML \Attribute ;
1110use SimpleSAML \XML \Constants as C ;
1211use SimpleSAML \XMLSchema \Exception \InvalidDOMAttributeException ;
1312use SimpleSAML \XMLSchema \Exception \SchemaViolationException ;
@@ -109,7 +108,7 @@ protected static function getAttributesNSFromXML(
109108 Assert::oneOf ($ namespace , NS ::$ PREDEFINED );
110109
111110 foreach ($ xml ->attributes as $ a ) {
112- if ($ a ->namespaceURI === ' http://www.w3.org/2000/xmlns/ ' ) {
111+ if ($ a ->namespaceURI === C:: NS_XMLNS ) {
113112 continue ;
114113 }
115114
@@ -152,7 +151,7 @@ protected static function getAttributesNSFromXML(
152151 }
153152
154153 foreach ($ xml ->attributes as $ a ) {
155- if ($ a ->namespaceURI === ' http://www.w3.org/2000/xmlns/ ' ) {
154+ if ($ a ->namespaceURI === C:: NS_XMLNS ) {
156155 continue ;
157156 }
158157
You can’t perform that action at this time.
0 commit comments