| Total Complexity | 1 | 
| Total Lines | 17 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 1 | Features | 0 | 
| 1 | <?php  | 
            ||
| 16 | final class Audience extends AbstractConditionType  | 
            ||
| 17 | { | 
            ||
| 18 | /**  | 
            ||
| 19 | * Convert XML into an Audience  | 
            ||
| 20 | *  | 
            ||
| 21 | * @param \DOMElement $xml The XML element we should load  | 
            ||
| 22 | * @return self  | 
            ||
| 23 | *  | 
            ||
| 24 | * @throws \SimpleSAML\XML\Exception\InvalidDOMElementException  | 
            ||
| 25 | * If the qualified name of the supplied element is wrong  | 
            ||
| 26 | */  | 
            ||
| 27 | public static function fromXML(DOMElement $xml): object  | 
            ||
| 36 | 
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.