File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 77use DOMElement ;
88use SimpleSAML \Assert \Assert ;
99use SimpleSAML \XML \Exception \InvalidDOMElementException ;
10+ use SimpleSAML \XML \Exception \MissingElementException ;
1011use SimpleSAML \XML \Exception \SchemaViolationException ;
1112use SimpleSAML \XML \Exception \TooManyElementsException ;
1213use SimpleSAML \XML \SchemaValidatableElementInterface ;
@@ -153,7 +154,7 @@ public static function fromXML(DOMElement $xml): static
153154 Assert::same ($ xml ->namespaceURI , static ::NS , InvalidDOMElementException::class);
154155
155156 $ y = Y::getChildrenOfClass ($ xml );
156- Assert::minCount ($ y , 1 , TooManyElementsException ::class);
157+ Assert::minCount ($ y , 1 , MissingElementException ::class);
157158 Assert::maxCount ($ y , 1 , TooManyElementsException::class);
158159
159160 $ g = G::getChildrenOfClass ($ xml );
You can’t perform that action at this time.
0 commit comments